readiness is live, Talqing starts a
session with the assigned agent’s current published version and the agent
speaks its greeting. Nothing else is needed per call — no request, no webhook, no
callback to your servers.
That is also the constraint the rest of this page is about: an inbound call
carries no request of yours, so everything the session needs has to be on the
agent already.
What the session knows
Three{{system_vars.*}} fields are populated on every phone call, before the
prompt is built, so a greeting can read them:
They are read-only and fixed for the life of the call.
{{system_vars.now}},
.date and .time are there too, on the agent’s own timezone. See
variables for the full list and the templating rules.
If an inbound session needs a value, give the variable a default. If the value
differs per caller, it is not a variable — read it in a tool at the start of the
call, or from the caller’s own record.
A returning caller
A phone conversation is keyed on the pair of numbers: your number and theirs. So the second time someone rings the same number of yours, it is the same conversation, not a new one — with the same contact record and the same history behind it. What the agent does with that history is the agent’sconversation.context
setting:
With
summary or transcript, initialize_userdata (on by default) also starts
the call already knowing what earlier ones learned about the person. Set on the
agent that answers. See conversation memory.
What is refused at the door
Some inbound calls never reach the agent. Each one leaves a visible call record with aclose_reason, so you can see it happened rather than wondering why the
number went quiet.
One agent, both directions
The same published agent can answer inbound calls and place outbound ones.{{system_vars.direction}} is how it tells which it is on.
There is no conditional syntax anywhere in a prompt or a greeting —
substitution is textual and nothing else. So you branch by putting the value in
front of the model and telling it what each value means:
Testing an inbound number
Ring it. There is no simulator, and nothing in the API places an inbound call — by definition, the carrier does that.1
Check readiness first
GET /v1/telephony/phone-numbers/{number_id} must read readiness: "live".
Anything else and the call will not reach the agent — see
troubleshooting.2
Call the number from a real phone
From a phone whose caller ID is not withheld.
3
Read the call back
GET /v1/calls?type=SIP_INBOUND&limit=1 gives the session id;
GET /v1/calls/{session_id} gives the transcript, every tool call and its
output, the per-stage latency and the cost. See
calls.agent_version: "draft"
instead. See per-call configuration.
Next
Recording
Recording is on by default. What is kept, and what the caller is told.
Transfers
Handing an inbound caller to a person.