Prerequisites
- A service that accepts a POST request and returns JSON.
- A managed credential if the service requires authentication.
Configure the request
- Open Start Call and enable Pre-Call Data Fetch.
- Enter the service URL and choose optional authentication.
- Return an
initial_contextobject from the service. - Reference returned values in the greeting or opening prompt with template variables.
- Test a success response, an error response, and a timeout before publishing.
Request and variable mapping
Klatt sends a call-inbound event with the caller and called numbers. The JSON object underinitial_context is merged into the call context and becomes available to templates.