Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Emit events from your integration to notify bots of external changes
export default new IntegrationDefinition({ events: { messageReceived: { title: 'Message Received', description: 'Triggered when a message is received', schema: z.object({ userId: z.string(), text: z.string(), timestamp: z.string(), }), }, }, })
const integration = new bp.Integration({ handler: async ({ req, client }) => { const event = req.body await client.createEvent({ type: 'messageReceived', payload: { userId: event.user_id, text: event.text, timestamp: new Date().toISOString(), }, }) return { status: 200 } }, // ... })