How to Set Up a WhatsApp AI Agent — A Simple Step-by-Step Guide
To set up a WhatsApp AI agent, copy 3 details from your Meta app (Phone Number ID, Access Token, App Secret) into TaskVox → WhatsApp Setup → Connections. Then paste the Webhook URL TaskVox gives you back into Meta, and create your agent under WhatsApp Agents. It takes about 20 minutes and needs no coding.
This guide shows how to set up a WhatsApp AI agent on TaskVox if you already have WhatsApp on Meta's API. Every step tells you exactly which screen to open and what to copy. You don't need to write any code.
The whole WhatsApp AI agent setup in one picture
You move between two places: your Meta app (where your WhatsApp number lives) and your TaskVox account (where your AI agent lives). Four short trips, and you're done.
How a message reaches your agent
Link to this section: taskvox.in/blog/whatsapp-ai-agent-setup-guide#big-picture
Before you start: what you need
| What you need | Why |
|---|---|
| A TaskVox account | Your AI agent lives here. New accounts get 100 free credits. |
| A WhatsApp Business number on Meta's API (WhatsApp Business Platform / Cloud API) | Your agent replies from this number. |
| Admin access to your Meta developer app and your Meta Business account | You copy details from it and change one setting. |
| Credits in TaskVox | Each AI reply costs 1 credit; one chat never costs more than 15 credits. See pricing. |
| About 20 minutes | Keep a notepad open to paste the details into. |
Not on Meta's API yet? The normal WhatsApp or WhatsApp Business app on your phone is not enough. Your number first needs to be added to the WhatsApp Business Platform in your Meta Business account.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#before-you-start
Step 1 — Copy 3 details from Meta (about 10 minutes)
Open developers.facebook.com, go to My Apps and open the app that has your WhatsApp number. Copy each detail below into your notepad.
1. Phone Number ID
- In the left menu, open WhatsApp → API Setup.
- In the From box, choose your business number.
- Just below it you'll see Phone number ID — a long number. Copy it.
The Phone Number ID is not your mobile number. It's Meta's own ID for your number, usually 15–16 digits.
2. Access Token (the permanent one)
- Open business.facebook.com → Business settings → Users → System users.
- Click Add, give it a name (e.g. "TaskVox") and choose the Admin role. Already have a system user? Use that one.
- Click Assign assets and give it full control of your app and your WhatsApp account.
- Click Generate new token, choose your app, and set expiry to Never.
- Tick these two permissions:
whatsapp_business_messagingandwhatsapp_business_management. - Click Generate token and copy it straight away — Meta shows it only once.
Don't use the token on the API Setup page. That one is temporary and stops working after about 24 hours — your agent would go quiet the next day.
3. App Secret
- Back in your app on developers.facebook.com, open App settings → Basic.
- Next to App secret, click Show (Meta may ask for your password) and copy it.
Bonus: make up a Verify Token
This one you invent yourself. Pick any word with no spaces, for example greenvalley2026, and write it in your notepad. You'll type it in two places: TaskVox (Step 2) and Meta (Step 3).
Your notepad should now have 4 things: Phone Number ID, Access Token, App Secret and your Verify Token. Keep the Access Token and App Secret private — they work like passwords.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#step-1
Step 2 — Connect WhatsApp in TaskVox (about 3 minutes)
- Log in to TaskVox.
- In the left menu, open WhatsApp Setup → Connections and click + New Connection.
- Fill in the form as shown in the picture below.
- Click Save.
After saving, you'll see your connection in the list. Now do two quick things:
- Copy the Webhook URL. Your connection shows a Webhook URL (it contains
/api/whatsapp/webhook/). Click it once — it's copied. - Click Test. TaskVox checks your Phone Number ID and Access Token with Meta. The status turns Active if they're right, or Error if something is wrong.
The Test button checks the Phone Number ID and Access Token only. The App Secret and Verify Token are checked when the first message arrives, so follow Step 3 and Step 5 too.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#step-2
Step 3 — Paste the Webhook URL into Meta (about 3 minutes)
This tells Meta where to send your customers' messages.
- In your app on developers.facebook.com, open WhatsApp → Configuration.
- In the Webhook section, click Edit.
- Fill in the two boxes as shown below and click Verify and save.
- Below that, in Webhook fields, find messages and click Subscribe.
Don't skip "Subscribe" on messages. Without it, Meta never passes messages to TaskVox and your agent stays silent — even though everything else looks fine.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#step-3
Step 4 — Create your WhatsApp AI agent (about 5 minutes)
In TaskVox, open WhatsApp Agents and click New. You only need the first few boxes to start; the rest is optional.
| Box | What to write | Example |
|---|---|---|
| Name | Your agent's name | Priya – Sales Assistant |
| Connection | Pick the connection from Step 2. Don't leave this as "Not attached yet". | Main Support Line |
| Identity & Tone | Who the agent is and how it talks | You are Priya from Green Valley Homes. You reply politely in Hindi or English and help people with flat prices and site visits. |
| Greeting Script | The first reply a customer gets | Namaste! 👋 Welcome to Green Valley Homes. How can I help you today? |
| Information to Collect | One row per detail you want — a field name and the question to ask. Add choices separated by | and customers can tap instead of typing. | Field: budget · Question: What is your budget? · Options: Under 50 lakh | 50 lakh–1 crore | Above 1 crore |
| Closing Script | Sent once all the details are collected | Thank you! Our team will call you within 24 hours. |
| Frequently Asked Questions (optional) | Questions customers often ask, with your answers | Q: Is parking included? A: Yes, one covered parking per flat. |
| Business Hours (optional) | Your working days and times, plus an After-Hours Message | Mon–Sat, 10 am – 7 pm IST |
Click Save, then open the agent's Test page and chat with it yourself to see how it replies. Change the wording until you're happy.
Add at least one row under "Information to Collect". That's what fills your WhatsApp Leads page with each customer's answers.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#step-4
Step 5 — Send "Hi" and check it works (1 minute)
- From a different phone, send Hi to your business WhatsApp number.
- Your agent should reply with your Greeting Script.
- Open Conversations in TaskVox — you'll see the chat there.
✅ Got a reply? Your WhatsApp AI agent is live.
Link to this step: taskvox.in/blog/whatsapp-ai-agent-setup-guide#step-5
After setup: chats, leads and templates
- Conversations — every chat, message by message. Type in the reply box to answer as a person, or press Hand off to human so the AI stops replying in that chat.
- WhatsApp Leads — the details your agent collected from each customer, in one table you can download as CSV.
- Templates — WhatsApp lets you message a customer first only with a template Meta has approved. Get the template approved in Meta first, then add it under WhatsApp Setup → Templates using the exact template name. TaskVox does not send templates to Meta for approval.
Link to this section: taskvox.in/blog/whatsapp-ai-agent-setup-guide#after-setup
Something not working? Common fixes
| What you see | What to do |
|---|---|
| Test shows Error | Check the Phone Number ID (not your mobile number) and paste the Access Token again — the whole token, no spaces at the start or end. |
| Meta says it couldn't verify the Callback URL | The Verify Token must be exactly the same in TaskVox and Meta (capital letters count). Make sure you pasted the whole Webhook URL. |
| Verified, but the agent never replies | 1) In Meta, check messages is subscribed. 2) Check the App Secret in TaskVox — a wrong App Secret means messages are not accepted. 3) Check the agent's Connection box is set. |
| It worked, then stopped a day later | You used the temporary token from API Setup. Make a permanent System User token (Step 1) and paste it in your connection's Edit page. |
| WhatsApp Leads page is empty | Add rows under Information to Collect in your agent. |
| I can't send the first message to a customer | That's WhatsApp's rule — use an approved template (see above). |
Changing a saved connection? On the Edit page, the token boxes are empty on purpose. Leave a box empty to keep what's saved; type in it only to replace that one value.
Link to this section: taskvox.in/blog/whatsapp-ai-agent-setup-guide#fixes
What it cannot do
- It can't give you a new WhatsApp number — you connect a number you already have on Meta's API.
- It can't use a number that is only on the WhatsApp or WhatsApp Business phone app.
- It can't send the first message without a Meta-approved template.
- It answers from what you tell it. It doesn't know your live stock or order status unless you give it that information.
- It does not take payments inside the chat.
Frequently asked questions
Do I need a developer to set up a WhatsApp AI agent?
No. If you can copy and paste, you can do it yourself in about 20 minutes. You only need admin access to your Meta (Facebook) developer app.
Can I use my normal WhatsApp or WhatsApp Business app number?
Only if that number is on the WhatsApp Business Platform (Meta's WhatsApp API). A number that is used only in the WhatsApp or WhatsApp Business phone app cannot be connected.
How much does the WhatsApp AI agent cost?
Each AI reply costs 1 credit, and one chat (one customer for 24 hours from the agent's first reply) never costs more than 15 credits. There is no monthly fee and setup is free. If you send template messages first, Meta charges for those separately.
Is my Access Token safe in TaskVox?
Yes. TaskVox stores it encrypted and never shows it again after you save. When you edit the connection you only see the last 4 characters.
Can my team reply to customers by hand?
Yes. Open the chat in Conversations and type your reply. Press "Hand off to human" if the AI should stop replying in that chat.
Why does the agent not reply after setup?
Usually one of three things: "messages" is not subscribed in Meta's webhook settings, the App Secret is wrong, or the agent is not linked to the connection. See the fixes table in this guide.
Can the AI agent send the first message to a customer?
No. WhatsApp only lets a business message a customer first with a template that Meta has approved. Approve the template in Meta, then register it in TaskVox under WhatsApp Setup → Templates.
Your WhatsApp number, answered by AI
100 free credits to test · no monthly fee · setup free