Documentation Index
Fetch the complete documentation index at: https://anam.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
System tools are built-in tools that run directly inside the Anam engine. Unlike client, webhook, or knowledge tools which make external calls, system tools execute instantly within the session to control engine behavior. Every persona can use system tools — you just need to attach them. No external endpoints, no client-side handlers, no additional setup required.Available System Tools
change_language
Allows the persona to dynamically switch the speech recognition language mid-session based on user requests. When invoked, the engine updates the transcription pipeline to expect the new language. This is useful for multilingual applications where users may switch languages during a conversation.Must be
"system"Must be
"change_language"ISO 639-1 language code (e.g.,
"fr", "de", "ja")en, af, ar, hy, az, be, bs, bg, ca, zh, hr, cs, da, nl, et, fi, fr, gl, de, el, he, hi, hu, is, id, it, ja, kn, kk, ko, lv, lt, mk, ms, mi, mr, ne, no, fa, pl, pt, ro, ru, sr, sk, sl, es, sw, sv, tl, ta, th, tr, uk, ur, vi, cy.
Example conversation:
User: “Can you switch to French? Je préfère parler en français.” Persona callschange_languagewithlanguage_code: "fr"→ speech recognition now expects French input. Persona: “Bien sûr ! Je vous écoute en français maintenant.”
skip_turn
Allows the persona to skip generating a spoken response and wait silently for the user to continue speaking. This is useful when the persona determines that no verbal response is needed — for example, when the user is in the middle of a thought or when silence is the most natural response.Must be
"system"Must be
"skip_turn"How long to wait in seconds before prompting the user again. Defaults to
30. Must be a positive number.User: “Hold on, let me think about this…” Persona callsskip_turnwithtimeout_seconds: 30→ stays silent for up to 30 seconds. The persona waits quietly until the user speaks again or the timeout elapses.
end_call
Lets the persona end the session gracefully after the user confirms they want to finish the conversation. The tool implements a two-step flow so the call is never closed on a single ambiguous cue.Must be
"system"Must be
"end_call"Persona calls end_call when the user seems to want to finish
The engine starts a pending confirmation and instructs the LLM to ask a short yes-or-no confirmation question. The session is not closed yet.
User confirms on the immediate follow-up turn
The persona calls
end_call a second time. The engine instructs the LLM to deliver a brief farewell.end_call invocation, the pending confirmation expires and the conversation continues normally.
Example conversation:
User: “OK, I think that’s everything I needed. Thanks!” Persona callsend_call→ engine returns “Ask the user to confirm whether they want to end the call now.” Persona: “Happy to help. Would you like to end the call now?” User: “Yes, please.” Persona callsend_callagain → engine returns “End the call after your brief farewell.” Persona: “Thank you, have a great day!” → session closes once the farewell finishes streaming.
end_call always runs with interruptions disabled, so the persona’s confirmation question and farewell are not cut off if the user speaks at the same time. See Protecting Tool Turns from Interruptions.Adding System Tools to a Persona
System tools are already available to every organization — you don’t need to create them. Just fetch the tool IDs and attach them to your persona or session.Step 1: Fetch System Tool IDs
Use the tools API to find the system tools available to your account:Step 2: Attach to a Session or Persona
Use the tool IDs in thetoolIds array when creating a session token:
System tools are pre-provisioned for all organizations. You only need to fetch the IDs once — they remain the same across sessions.
How System Tools Differ from Other Tools
| System Tools | Client Tools | Webhook Tools | Knowledge Tools | |
|---|---|---|---|---|
| Runs where | Inside the engine | In your client app | External HTTP endpoint | Engine-side RAG search |
| Latency | Near-instant | Depends on client | Network dependent | Depends on corpus size |
| Setup needed | Just type + name | Client-side handler | URL + endpoint | Document upload |
| Use case | Session control | UI actions | External APIs | Document search |
Next Steps
Multilingual Support
Learn more about configuring languages for your personas
Tools Overview
Explore all tool types available in Anam

