Listen to web hooks and automate with LLM

Here is an example of how to listen to web hooks with our TypeScript SDK.

// Build an agent that listens to the emails and react to it
convore.subscriptions.on('inbound_message_received', (conversation) => {
	const agent = Agent(
		prompt='You are a helpful expense specialist.',
		tools=[list_expenses, match_receipt, reimburse]
	)
	agent.handle(conversation)
})