LemuAIDocs

Voice Agents · 1 min read

API Trigger

API Trigger helps you trigger your Voice Agent using external systems, like N8n or Zapier

Open in ChatGPTOpen in ClaudeMarkdown

API Payload#

The API Trigger is a POST request, which requires an API Key. It expects a valid JSON with phone_number and initial_context.

Initial Context#

initial_context is a valid JSON object, which contains any contextual information that you would want your voice agent to access. You can refer to these values in your prompts using Handle Bars, which are values enclosed in {{ and }}.

Example: If you have below JSON as your initial_context

Text
{
    "initial_context": {
        "user": {
            "name": "John"
        }
    }
}

you can refer to the user name in your prompts as {{user.name}}. The keys of initial_context are added to the call's context directly, so you don't prefix them with initial_context.

Was this page helpful?