Create an AI agent for WhatsApp and PSTN calls
Learn how to create an AI agent that answers and makes calls on WhatsApp and on your phone line, step by step, from the first prompt to your first test call.
Your customers call when they want an answer right away. With a calling AI agent, every call gets picked up, whether it comes in on WhatsApp or on your regular phone line (PSTN). The agent talks to customers in their own language, answers from your help content, checks details like order status in your systems, and passes the call to your team when a person is needed.
This guide walks you through building a calling agent, one step at a time. Keep DoubleTick open in another tab and build your agent as you read. By the end, it will be ready for its first test call.
What’s covered
Before you begin
Make sure you have:
The AI agents and assistance add-on enabled on your account.
A WhatsApp number with calling enabled, or a phone (PSTN) number connected to DoubleTick.
Your help content ready, such as your website, FAQs, and the PDFs or spreadsheets your team uses to answer customers.
Enough AI credits for your calls. Each call minute uses 10 AI credits. See AI credit usage.
Step 1: Create your agent

Click Create new agent.
Type a name your team will recognise, for example “Customer support agent” or “Renewals agent”. Customers never see this name.
Describe the agent’s job in a sentence or two, for example: “Answers customer questions about our products, orders and returns, and transfers the call to the support team when needed.” This becomes the start of your prompt. You can also click Skip and write it later.
If you already have knowledge bases, select the ones this agent should use. If not, you’ll add knowledge in Step 4.
Click Create agent.
Your agent opens in its editor. Click Call agent in the left menu to start the calling setup. You can use Search settings at the top of the left menu to jump to any setting.
Step 2: Choose the language and voice

Click Call agent, then open the Settings tab.
Under Voice and languages, click Languages and select the main language your customers speak, for example English (India) or Hindi (India). You can search the list.
Click Voice. The Choose a voice window opens. Search by name, and click the speaker icon on any voice to hear it.
Select the voice you like, then click Use this voice.
Click Save settings at the bottom.
Step 3: Write a call prompt

The call prompt is the set of instructions your agent reads before every call. Think of it as the briefing you’d give a new team member on their first day: who they are, what they help with, how they should talk, and what they must never do.
What to include: Give each part its own heading so it’s easy to update later.
Role and goal: Who the agent is, and what a good call looks like. For example: “You are a support executive at [your business name]. Your goal is to answer the caller’s question correctly and make sure they know what to do next.”
How to speak: The caller can’t scroll back on a call, so ask the agent to keep answers short, ask one question at a time, and sound friendly and calm.
Language: Which language to start in, and when to switch. For example: “Start in English. If the caller speaks Hindi, switch to Hindi.”
What it can help with: The topics it handles, such as products, orders, delivery and returns. For example: “Answer only from the knowledge you have.”
Guardrails: What the agent must never do. For example: “Never guess a price or a date. Never ask for an OTP, password, card number or UPI PIN.”
When to hand over: When the agent should pass the call to your team. For example: “If the caller asks for a person, or you can’t help after two tries, transfer the call.”
Write and save it:
Click Call agent, then open the Prompt tab.
Write your prompt in the editor. Use Formatted to see headings and lists, or Raw to write in Markdown. Click Full screen if you need more room.
As you add headings, they show up in the Contents panel beside the editor. Click a heading to jump straight to it.
Click Save settings at the bottom.
Your call prompt can be up to 10,000 characters. The character count shows below the editor.
Sample call prompt:
You don’t need a perfect prompt on day one. Start simple, test a few calls in Step 8, and improve it based on what you hear.
Step 4: Give your agent knowledge

Your agent can only answer well if it has the right information. Add whatever you’d give a new team member to read before they start taking calls. Click Knowledge in the left menu, then click Add source. You’ll see three options.
Add your website: Use this for your website and help centre. The agent reads every page under the address you give it.
Click Add source, then click Website.
In Address, enter the link, for example https://www.yourbusiness.com.
Keep Follow links to other pages on the same site selected, so the agent reads the linked pages too.
Click Add website. Repeat for each site, such as your help centre.
Websites are re-crawled once a day, so the agent picks up page changes on its own.
Add FAQs: FAQs suit questions customers ask again and again, especially when you want one exact answer.
Click Add source, then click FAQ.
Type the Question the way a customer would ask it, for example “How long does delivery take?”
Type the Answer you want the agent to give.
Click Add FAQ. Repeat for each question.
Add files: Use files for documents your team already has, like price lists, policies, product guides or spreadsheets.
Click Add source, then click Files.
Drag your files into the box, or click it to choose them. You can add PDF, Excel, CSV, Markdown and text files, up to 20 MB each.
Click Add files.
Once a source is ready, its status shows Trained. If you change your website or files, click Re-sync all to update everything at once.
Use a shared knowledge base: In the Knowledge bases box, select a knowledge base you’ve already built, or click Create knowledge base to build one that every agent can answer from.
Step 5: Set up your tools

Knowledge helps your agent answer questions. Tools let it do things during a call, like checking an order, booking a demo or raising a ticket. Click Tools in the left menu.
Built-in tools: Every agent comes with three tools made for calls. Turn each one on or off, then click Save settings.
end_call: Lets the agent hang up politely once the conversation is complete. Keep this on.
transfer_to_human: Lets the agent pass the call to someone on your team when the customer asks. Turn this on if callers should be able to reach a person.
customer_context: Before each call, the agent reads the customer’s name, a summary of their chats and their custom fields, so it can greet them by name and skip questions you already know the answers to.
You’ll also see the Send · WhatsApp tools. These send images, documents, buttons and lists, so they work in chats only.

Create your own tool: When your agent needs information from your own system, or needs to take an action there, create a tool. For example, a support agent could use a tool called check_order_status to look up where a customer’s order is.
Click Add tool. The Create Tool panel opens.
In Name, type a short name in lowercase words joined by underscores, for example check_order_status.
In Description, tell the agent when to use the tool. Be specific, because the agent decides based on this. For example: “Use this when the caller asks where their order is, or when it will be delivered.”
Under Type, choose how the tool works:
Bot: Runs a journey you build in the Bot Builder. You build the journey after you create the tool
API: Connects to your own system to fetch or send data, such as an order status.
Under Available for, choose where the agent can use the tool:
All: On both chats and calls.
Voice only: On calls only.
Text only: On chats only.
Click Add parameter for each detail the agent should collect from the caller first, such as an order ID or an email address.
If you chose API, fill in the request details:
Select the Method, such as GET or POST, and enter the URL.
Click Add header for any headers your system needs, such as an authorisation key.
Already have a cURL command? Click Import from cURL and paste it to fill in these details.
Click Test API to check that everything works.
Click Create.
Your new tool shows under Your tools, with a toggle to turn it on or off. Mention it in your prompt so the agent knows when to use it, for example: “When the caller asks about their order, use check_order_status.”

Build the journey for a Bot tool:
Click the three-dot menu on the tool, then click Create customer journey. Once a journey exists, this option shows as Open customer journey.
The Bot Builder opens with a starting point called On customer intent.
Add the actions you need, such as Assign Agent, and connect them.
End the flow with Pass Tool Call Response and write what the agent should tell the caller.
Turn on the toggle so it shows Enabled, then click Save.
Fetch details before the call starts: Sometimes you want information ready before the agent says hello, like the customer’s latest order. For this, tick Pre-call tool when you create the tool.
A pre-call tool runs once, before the call starts. The agent can’t use it again during the call.
Its URL or body can use {{customerId}} and {{customerPhone}} to look the customer up.
To use its reply, add the field to your prompt or first message as {{tool_name.field}}, for example {{get_latest_order.order_id}}.
Step 6: Adjust call settings

Click the Settings tab under Call agent. Settings are grouped by topic. Each group has an Advanced section. Click Show to open it. The defaults work for most agents, so keep them and adjust later based on your test calls. Click Save settings at the bottom when you’re done.
Conversation: What the agent says first, and what it remembers.
First message for incoming calls: What the agent says as soon as it picks up. For example: “Hi {{customer.name}}, thanks for calling [your business name]. How can I help you today?” If you leave it empty, the agent waits for the caller to speak first.
First message for outgoing calls: What the agent says when the customer answers your call. If you leave it empty, the agent says nothing first.
Use chat history as context: Turn this on so the agent gets the customer’s chat summary and recent messages. The customer doesn’t have to repeat themselves.
Messages to include: Once chat history is on, choose how many recent messages the agent gets.
In Advanced:
Detect the language: Lets the agent switch to the language the caller speaks.
Switch language after: How quickly the agent follows a caller who changes language. Balanced works for most calls.
Pronunciation dictionary: Teaches the agent how to say brand names, abbreviations and tricky words. Click Add word, type the word, then type how to say it.
Summarise long calls: On long calls, the agent condenses the earlier part so it doesn’t lose track. Use Summarise after to choose after how many turns this starts.
Turn-taking: When the agent listens and when it speaks.
Customer can interrupt: When this is on, the agent stops talking as soon as the caller starts. This makes the call feel natural.
Words that don’t interrupt: People say “hmm”, “haan” or “ok” while they listen. Words in this list won’t make the agent stop. Many common words are already added. To add your own, type it in the box and press Enter.
In Advanced, you can fine-tune how the agent decides a turn has started or ended, and how long it waits during pauses. If background noise keeps interrupting the agent, raise Minimum volume a little.
Audio: What the caller hears around the agent’s voice.
Background ambience: Adds a soft room sound behind the agent’s voice, so it sounds like a real office.
In Advanced, you can set Background noise removal and choose the Phone audio quality.
Call limits: How many calls run at once, and how long each one can last.
Concurrent calls for this agent: How many calls this agent can be on at the same time. Use the - and + buttons to change it. All agents share your organisation’s total. Click Manage to split them between agents. Need more? Contact support@doubletick.io.
In Advanced:
Max call duration: The call ends on its own after this many seconds. For example, 600 seconds is 10 minutes.
Prompt the customer after silence of: How many seconds the agent waits before checking in when the caller goes quiet.
Silence prompts before hanging up: How many times the agent checks in before ending the call. Set it to 0 to hang up at the first silence.
What it says after silence: What the agent says to check in, for example “Are you still there?”
Handover: When a person on your team takes over the call.
Transfer to a human: Turn this on to let the agent pass the call to your team when the caller asks.
Message before transfer: What the agent says just before handing over, in one line of up to 300 characters. For example: “Sure, I’m connecting you to our team now. Please stay on the line.”
In Advanced:
Transfer to: Who receives the call, for example Anyone on the number.
How it picks: Which person takes the call, for example In turn.
Voicemail detection: What the agent does if an answering machine picks up. Choose Listen for a voicemail greeting, Answering-machine detection or Off.
Step 7: Set up post-call metrics

After every call, your agent can note down the details that matter to your business, like whether the customer was interested or when they promised to pay. These are called post-call metrics. They show on every call in Calls, and as columns when you export calls to CSV.
Click Post call metrics in the left menu. Every agent starts with two default fields:
call_outcome: Whether the customer was interested, not interested, or asked for a callback.
meaningful_conversation: Whether the customer actually engaged with the purpose of the call (Yes / No).
Add your own field: Say you want to know which product each caller asked about.
Click Add field.
In Name, type a short name in lowercase words joined by underscores, for example product_asked_about. This is used in results and exports.
In Label, type the name your team will see, for example “Product asked about”.
Under Type, choose what kind of answer you expect:
Text: A short written answer.
Number: A number, such as an amount.
Options: One answer from a list you set. Type each option in Values.
Yes / No: A simple yes or no.
In How the AI fills it, tell the AI what to look for, as if you were explaining it to a colleague. For example: “The product the caller asked about most.”
Turn on Required if the AI should always fill in this field.
Click Add field.
To change a field later, click the edit icon next to it.
Step 8: Test your agent on a call

Before your customers hear your agent, take a few test calls yourself. In the test panel on the right, click the Call tab. There are two ways to test.
Test from your browser with Web call: This is the quickest way. You talk to the agent through your computer’s microphone.
Click Web call.
Enter the test customer’s name and phone number. The agent treats this as the person it’s talking to.
Under From channel, select the WhatsApp or phone number the test call should be recorded on.
Next to Greeting, choose who starts the call:
We call them: Tests an outgoing call, using your first message for outgoing calls.
They call us: Tests an incoming call, using your first message for incoming calls.
Click Start web call and allow access to your microphone when asked.
Test on your phone with Call my number: This places a real phone call from the agent, so you hear exactly what your customers will hear.
Click Call my number.
Enter the name and the phone number the agent should call.
Select the From channel and choose the Greeting.
Click the Call button and answer your phone.
What to check on a test call
Does the agent greet the caller the way you want?
Does it answer common questions correctly from its knowledge?
Does it use your tools at the right moments?
Does it switch language when you do?
Does it transfer the call when you ask for a person?
If something doesn’t sound right, update the prompt, knowledge or settings and call again. You can also use the Chat tab to quickly test answers by text.
AI credit usage
Calls handled by your AI agent use 10 AI credits for every minute of the call. On an Indian (INR) account, this is about ₹5 per call minute.
If your AI credits reach zero, AI features stop working until you top up or your next monthly refill arrives. Set up email alerts so your team knows before this happens. For the full rate card, how credits refill and how to top up, see Introduction to AI agents.
Key takeaways
Start from Automate > AI Agents > Create new agent, then open Call agent.
Pick one main language and a voice that suits your brand in Call agent > Settings.
Write the prompt like a briefing for a new team member: role, tone, topics, guardrails and when to hand over.
Add your website, FAQs and files in Knowledge, so the agent has the right answers.
Use tools to let the agent check details and take actions during a call.
Keep the advanced settings on their defaults until testing shows you need a change.
Use post-call metrics to capture what matters from every call.
Test with Web call or Call my number before you go live.
Each call minute uses 10 AI credits. If your credits run out, AI features stop until you top up or your credits refill.
FAQs
Related articles
Introduction to AI agentsCreate an AI agent for WhatsApp chatsCreate custom tools for your AI agentLast updated