For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data retrieval at call start

With data retrieval at call start, your agent retrieves a URL you have stored as soon as an incoming call starts. The response is then available to them during the conversation.

When is this useful?

Data retrieval is suitable for content that changes frequently or differs per call:

  • query current availability: for example, available appointments or stock levels

  • load CRM data or customer history

  • day-specific instructions: for example special opening hours or promotions

  • past interactions with the calling person make available

Data retrieval is intended for specific information about the current call. It does not replace a general knowledge base and is not suitable for extensive content such as PDFs, websites, or documentation. Store permanent knowledge in the knowledge base.

Requirements

  • a URL reachable via HTTP or HTTPS, HTTPS recommended

  • an endpoint that responds quickly, because retrieval takes place when the call starts

  • compact, well-structured content, because the response is embedded as text in the conversation context

Note: The server response should contain only data. Prompt instructions or behavioral rules are ignored or not processed reliably.

How to set up data retrieval

Where do I find data retrieval?

  • sipgate sona: Open the agent overview and drag and drop data retrieval at call start from the library in the sidebar onto your agent.

  • AI Agents: Open your agent's configuration → Integrations menu item → Data retrieval at call start section → gear icon.

Note: As long as no data retrieval is configured, no card for it will appear in the agent overview either. Therefore, you always create the first data retrieval via the library.

1

Enter in the dialog Configure data retrieval the desired URL.

2

Optionally enable Force retrieval, so that retrieval must succeed before the call takes place.

3

Click Save.

The configured URL then appears in the interface. On the next incoming call, the content is retrieved automatically.

Which return formats does the agent support?

Your agent processes information from third-party applications only if it is returned in a readable text format. It cannot directly read PDF files, websites, or other file formats.

Supported are Plain Text, Markdown, and JSON. The desired format must be specified in the request, and the connected server must set the appropriate Content-Type-header:

Examples:

  • Plain Text: Content-Type: text/plain

  • Markdown: Content-Type: text/markdown

  • JSON: Content-Type: application/json

Which parameters are passed to the server?

When retrieving data, your agent passes information to the connected server so that suitable data for the current call can be found there:

callerNumber The phone number of the calling person.

destinationNumber The phone number that the agent was called on. If multiple numbers are assigned to the agent, only the phone number of the current call is passed.

sessionId The unique ID of the current call. This ID can be used by the server to uniquely assign the data retrieval to a specific conversation. It sessionId can also be used for live integrations. This allows the server to recognize the same call across multiple queries, for example between the initial data retrieval and later live queries during the conversation.

assistantId The internal ID of the agent. This ID is uniquely assigned to an agent and helps the server distinguish between multiple agents.

The connected server must be able to process these parameters and provide the appropriate information in the supported return format.

Option: "Force retrieval"

With this checkbox, you determine how strictly your agent handles errors:

  • Disabled (default): If the URL is not reachable, the call is still connected, just without the additional context.

  • Enabled: If the URL is not reachable, the call is rejected. Only choose this if the context is indispensable, for example if no meaningful conversation is possible without CRM data.

Remove data retrieval again

  1. Open the configuration dialog again.

  2. Click Delete data retrieval.

  3. Confirm with Delete permanently.

No data retrieval will then take place for future calls.

Frequently asked questions

How long may the endpoint take to respond?

As short as possible. Data retrieval takes place synchronously at the start of the call, and long response times delay the start of the conversation. Retrieval starts while the phone is still ringing and usually takes 2 to 5 seconds.

What happens if the 5 seconds are exceeded?

If the endpoint does not respond within 5 seconds, the retrieval is aborted and your agent starts the conversation without the requested information. The transcript does not note whether the data retrieval failed.

What happens if I change the URL?

On the next incoming call, the new URL will be retrieved automatically. There is no cache that would need to be cleared first.

Does it work with any URLs?

The URL must be reachable via HTTP or HTTPS and contain a valid top-level domain. Inputs without a protocol such as my-company.de are automatically supplemented with https:// when saving.

Last updated