Guide

How to Set Up a WhatsApp AI Agent — A Simple Step-by-Step Guide

Shivam Yadav
Shivam Yadav
Co-Founder & Software Engineer, TaskVox AI
25 November 2026·9 min read
Quick answer

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.

1MetaCopy 3 details
2TaskVoxSave them as a connection
3MetaPaste the Webhook URL
4TaskVoxCreate your agent
✓DoneCustomers chat, your agent replies
In your Meta appIn TaskVoxLive
The 4 steps of the setup. Blue steps happen in Meta, violet steps in TaskVox.

How a message reaches your agent

CustomerSends "Hi" to your business number
WhatsApp (Meta)Passes the message to your Webhook URL
TaskVox AI agentReads it and writes a reply
CustomerGets the reply on WhatsApp
The Webhook URL (Step 3) is the "address" Meta uses to pass your customers' messages to TaskVox.

Before you start: what you need

What you needWhy
A TaskVox accountYour 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 accountYou copy details from it and change one setting.
Credits in TaskVoxEach AI reply costs 1 credit; one chat never costs more than 15 credits. See pricing.
About 20 minutesKeep 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.

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

  1. In the left menu, open WhatsApp → API Setup.
  2. In the From box, choose your business number.
  3. 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)

  1. Open business.facebook.com → Business settings → Users → System users.
  2. Click Add, give it a name (e.g. "TaskVox") and choose the Admin role. Already have a system user? Use that one.
  3. Click Assign assets and give it full control of your app and your WhatsApp account.
  4. Click Generate new token, choose your app, and set expiry to Never.
  5. Tick these two permissions: whatsapp_business_messaging and whatsapp_business_management.
  6. 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

  1. Back in your app on developers.facebook.com, open App settings → Basic.
  2. 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.

Step 2 — Connect WhatsApp in TaskVox (about 3 minutes)

  1. Log in to TaskVox.
  2. In the left menu, open WhatsApp Setup → Connections and click + New Connection.
  3. Fill in the form as shown in the picture below.
  4. Click Save.
From your notepad
Box in TaskVox
Any name you likee.g. "Main Support Line"
Label
Meta Cloud APIchoose from the list
Provider
Phone Number IDthe long number from Step 1
Phone Number ID
Your WhatsApp numbere.g. +91 98765 43210
Display Number
Access Tokenthe permanent one
Access Token
App Secret
App Secret
Your Verify Tokenthe word you made up
Verify Token
What goes into each box of the New Connection form.

After saving, you'll see your connection in the list. Now do two quick things:

  1. Copy the Webhook URL. Your connection shows a Webhook URL (it contains /api/whatsapp/webhook/). Click it once — it's copied.
  2. 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.

Step 3 — Paste the Webhook URL into Meta (about 3 minutes)

This tells Meta where to send your customers' messages.

  1. In your app on developers.facebook.com, open WhatsApp → Configuration.
  2. In the Webhook section, click Edit.
  3. Fill in the two boxes as shown below and click Verify and save.
  4. Below that, in Webhook fields, find messages and click Subscribe.
From TaskVox / your notepad
Box in Meta
Webhook URLcopied in Step 2
Callback URL
Your Verify Tokenexactly the same word as in TaskVox
Verify token
Turn on messages
Webhook fields → messages → Subscribe
Two boxes to fill and one switch to turn on in Meta.

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.

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.

BoxWhat to writeExample
NameYour agent's namePriya – Sales Assistant
ConnectionPick the connection from Step 2. Don't leave this as "Not attached yet".Main Support Line
Identity & ToneWho the agent is and how it talksYou are Priya from Green Valley Homes. You reply politely in Hindi or English and help people with flat prices and site visits.
Greeting ScriptThe first reply a customer getsNamaste! 👋 Welcome to Green Valley Homes. How can I help you today?
Information to CollectOne 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 ScriptSent once all the details are collectedThank you! Our team will call you within 24 hours.
Frequently Asked Questions (optional)Questions customers often ask, with your answersQ: Is parking included? A: Yes, one covered parking per flat.
Business Hours (optional)Your working days and times, plus an After-Hours MessageMon–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.

Step 5 — Send "Hi" and check it works (1 minute)

  1. From a different phone, send Hi to your business WhatsApp number.
  2. Your agent should reply with your Greeting Script.
  3. Open Conversations in TaskVox — you'll see the chat there.

✅ Got a reply? Your WhatsApp AI agent is live.

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.

Something not working? Common fixes

What you seeWhat to do
Test shows ErrorCheck 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 URLThe 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 replies1) 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 laterYou 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 emptyAdd rows under Information to Collect in your agent.
I can't send the first message to a customerThat'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.

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.

Shivam Yadav
Co-Founder & Software Engineer, TaskVox AI

Full-stack AI engineer specialising in voice AI, real-time communication systems and telephony. Built the TaskVox AI calling platform from the ground up. More articles →

Your WhatsApp number, answered by AI

100 free credits to test · no monthly fee · setup free

Read next