Official TypeScript/JavaScript SDK for AI Inbx
createNextRouteHandler()
generates a ready-to-use POST
handler that:
AI_INBX_SECRET
env variable.app/api/aiinbx-webhook/route.ts
):
AI_INBX_SECRET
in your environment. The value is shown once when you enable secrets during webhook creation./api/aiinbx-webhook
) in the dashboard.
emailToLLMString()
and threadToLLMString()
to transform rich email objects into compact, XML-ish strings optimised for Large Language Models:
ℹ️ The example above is completely serverless and needs no additional infrastructure.