Phone and SMS
An employee can have its own phone number. People call it and talk to the employee, or text it. A call and a text are the same thing to the employee: each runs its workflow, with its knowledge, its tools, and its rules, and both are kept in one conversation per caller.
Take a sushi restaurant. A customer calls the number, asks what is in the combo for two and whether it delivers to their street, and orders. The employee answers from the menu, takes the items and the address, and saves the order to a table, the same steps it runs when someone texts.
Get a number
- Open the employee, select Manage, then Channels.
- Select Phone and SMS.
- Select Get a number.
Docana assigns a US toll-free number and shows it on the page, with Call it and Text it beside it. The employee must be published first.
What works when:
| When it works | |
|---|---|
| Phone calls | Right away |
| Text messages in | Right away |
| Text replies out | After the carrier approves the number, usually a few business days. Docana submits the request for you and the page shows its status |
So the fastest way to try a new number is to call it.
Getting a number buys a paid toll-free number. When the employee's WhatsApp already runs on a toll-free number Docana bought, the same number is used.
What a call is like
The employee picks up and greets the caller first, as a person would. From there the caller speaks normally. Each request runs the employee's workflow, and the reply is spoken. While the employee works, the voice says so in a short sentence, such as "One moment, I'm checking that for you."
A phone has no screen, so a call differs from a voice call in the app in three ways:
- Nothing is shown. When a reply has a link, a file, or a long list, the voice says what it is about and that the caller can get it by texting the same number.
- Steps that need a written answer wait for a text. When the employee needs an approval or a choice from a list, the voice says it did not do it and asks the caller to text the number to continue.
- A handed-off conversation stays with the person. When the employee has handed the conversation to your team, or someone took it over, the employee stays quiet on later calls and texts from that phone. What the caller says is kept, and the voice says someone will get back to them. It answers again once the conversation is handed back.
A few things keep a call steady:
- A hello is answered at once. Greetings, thanks, and goodbyes are answered by the voice and do not run the workflow.
- Each request runs once. A question repeated while its answer is on the way does not start a second run.
- The voice finishes its sentence. A reply that arrives while the voice is speaking waits for it to finish.
- A reply cut off is said again. When someone talks over the voice in the middle of an answer, it repeats the answer once the line is quiet.
- Silence is broken. When the caller says something and gets no answer for a few seconds, the voice answers, asks them to repeat, or says it is still there.
- Waiting sounds like a person. While the workflow runs, the voice says short things about what it is doing, such as "Let me pull that up", and leaves quiet between them.
Calls end on their own after 15 minutes.
The employee's voice
Each employee can have its own voice on calls. Open the employee, select Manage, then Details, and choose one under Voice on calls. It applies to the next call, in the app and on the phone number.
A new employee whose portrait is a face starts with a voice that goes with it, a different one for each portrait. An employee whose portrait is a drawing, or whose voice you set to the company's, speaks with the company's voice, set under Voice in the company settings.
An example: a support line
This is one of two phone line examples. The other is a sushi restaurant that takes orders.
Sofia answers support for a software company. Her number is routed to one agent whose workflow reads each request, sends it down the right path, and collects what that path needs before it answers.
A refund is read once more before it is answered:
The two diamonds are Reasoning nodes. The first classifies the request into one of nine routes, seven of them shown here. The second reads a refund request for two facts, the plan and the cause, and routes on them. Every box is an Instructions node with one narrow job and the policy it answers from. An outage hands off too, when the caller's team cannot work.
One call, start to end
The answers below are what this workflow gave in a test. The exact wording changes from call to call.
Sofia: Hello, this is Sofia from Northwind support. How can I help?
Caller: I'd like a refund.
Sofia: I can help you with your refund. Are you on our monthly or annual plan?
Caller: Annual. I paid 2,400 dollars and I'm in the second month.
Sofia: One moment, I'm checking that for you.
Sofia: Your unused value is 2,000 dollars. Your refund after the 10 percent fee is 1,800 dollars, or you can receive 2,000 dollars as account credit. Because this is above 500 dollars, our Customer Success lead will review it and answer within one business day. A person of the team will continue from here.
What happened behind the voice:
- "I'd like a refund" was routed to the refund path. The plan was not known, so the workflow asked for it and stopped. It did not explain a policy the caller might not need.
- The second answer gave the plan, the amount, and the month. The workflow searched the refund policy, counted two months as used, and worked out the unused value, the fee, and the credit option.
- The approval limit in the policy is 500 dollars for a support employee. The refund is above it, so Sofia did not promise it. She handed the conversation to the team with a summary: who called, the facts, and what she had told them.
- The team found the conversation under Waiting for you, with the call's turns and the summary, and took over from there.
Other calls the same workflow handles
| The caller says | What Sofia does |
|---|---|
| "How much is the Team plan for 15 people, paid annually?" | Reads the pricing sheet and answers 3,750 dollars a year |
| "I was charged twice this month." | Says a duplicate charge is refunded in full within five business days, asks for the invoice, and hands it to the team to pay |
| "The product has been down for six hours and my team can't work." | Apologizes, works out two days of service credit from the policy, and hands off because the team is stopped |
| "The password reset email never arrives." | Asks whether the company uses single sign-on, then walks through the checks one at a time |
| "Our Google Drive sync says reconnect required." | Gives the four steps from the help center |
| "Can I talk to a person?" | Hands off at once, without trying to solve it first |
None of this is specific to the phone. The same workflow answers a text to the number and a call in the app. You build and test it once.
Settings
| Setting | What it does |
|---|---|
| On | Whether the employee answers the number. Turning it off keeps the number |
| Public | On: anyone can call or text. Off: only people with access to the employee, matched by their phone number |
| Phone calls | On: people can call. Off: callers hear that the number does not take calls, and texting still works |
| Who answers | The employee's assistant, or one of its published agents. Calls and texts use the same choice |
For the fastest answers on a call, route the number to one published agent. In that agent, turn off Search the knowledge base while evaluating on reasonings that only route the request: they then decide in a fraction of the time.
Calls and texts in one conversation
A caller is recognized by their phone number. Their calls and their texts go into one conversation, so the employee remembers what was said in either. You read it on the employee's Working tab like any other conversation, and each spoken request appears in the agent's logs.
Watch and end a live call
While someone is on the phone with the employee, their conversation shows a notice at the top: that a call is on, who is calling, and for how long. What the caller and the employee say appears below it as they say it.
Select End call to hang up. Anyone who can open the conversation sees the notice. Ending the call needs permission to change the employee.
While the caller waits
A workflow can take a few seconds. The caller does not wait in silence: the voice says short things about what it is doing, and between them a quiet piece of music plays, with someone typing now and then. It stops the moment the voice has something to say. A deployment can turn the music off with VOICE_HOLD_MUSIC=false.
From code
The number, its settings, and getting one are available through REST, MCP, and the CLI:
docana employees phone 12
docana employees phone 12 --enable --acknowledge-number-purchase
docana employees phone 12 --enable --no-calls
See the Employees API reference.
Limits to know
- The channel must be available to your company. When you do not see Phone and SMS under Channels, ask Docana to turn it on.
- US toll-free numbers only. Local numbers and numbers in other countries are not available yet.
- Voice calling must be set up for the company, as for calls in the app.
- A call is paid for by the minute, to the phone carrier and for the voice, including silence.
- WhatsApp calls are separate. A call to a WhatsApp number does not run the workflow yet. See WhatsApp.