How to Connect WhatsApp to ChatGPT (Official API, 5 Minutes)
To connect WhatsApp to ChatGPT, you put your business number on the official WhatsApp Business API through a provider like Visity, generate a private MCP connector URL, and add it to ChatGPT as a custom connector. It takes about five minutes. After that you can ask ChatGPT things like “How many chats did we get today?” or “Send my payment reminder template to these 40 customers” and it does the work on your real WhatsApp.
This guide walks through the setup step by step, what ChatGPT can and cannot do once connected, and the safety rails that stop it from messaging anyone without your approval.
What “connecting WhatsApp to ChatGPT” actually means
ChatGPT does not have a built-in WhatsApp Business integration. What it does have is support for connectors built on the Model Context Protocol (MCP), an open standard that lets an AI assistant use tools from another app. Visity publishes an MCP connector for WhatsApp, so ChatGPT gets a set of WhatsApp tools: read your chats and leads, send messages and templates, create new templates, and run broadcast campaigns.
Everything goes through the official WhatsApp Business API. That matters. Browser extensions and “WhatsApp Web bots” that promise the same thing automate a personal WhatsApp session, which breaks WhatsApp's terms and is the fastest way to get a number banned.
What you need before you start
| Requirement | Why | Time |
|---|---|---|
| A Visity account (free plan is fine) | Provides the WhatsApp Business API connection and the MCP connector | 2 minutes |
| Your WhatsApp number on the API | ChatGPT can only act on a number connected to the official API | 10 to 20 minutes, once |
| A ChatGPT plan with custom connectors | Lets you add Visity as a connector | Already done if you are on a paid plan |
If your number is not on the API yet, our step-by-step guide to getting WhatsApp Business API covers Meta Business verification and what to expect.
How to connect WhatsApp to ChatGPT, step by step
Part 1: Get your private connector URL from Visity
- Log in to the Visity dashboard and open MCP Connector in the side menu.
- Click to generate your URL. It looks like
https://app.visity.io/mcp/user?key=visity_live_... - Copy it now. It is shown once, and it carries your account key, so treat it like a password.
Part 2: Add it to ChatGPT
- In ChatGPT, click Plugins in the side menu.
- Click Add at the top right and choose Custom connector.
- Name it Visity and paste your URL.
- Set Authentication to No authentication (the URL already contains your key), then save.
- Start a new chat, make sure Visity is turned on, and ask: “How many chats did we get today?”
If you get a number back, you are connected. ChatGPT's menus move around between releases, so if a label looks different, look for “connectors” or “apps” in settings. The URL and the no-authentication setting stay the same.
What ChatGPT can do with your WhatsApp once connected
| You ask | What happens |
|---|---|
| “How did WhatsApp do this week?” | Messages in and out, active chats, new leads, chats your team took over, broadcast stats |
| “What are customers asking most?” | Top 10 groups of similar questions, each with its share and real example messages |
| “Show me today's new leads” | Leads captured by your AI agent, with the details it collected |
| “Find the contact with phone 98XXXXXXXX” | The contact and their recent conversation |
| “Write a payment reminder template” | Drafts it with you, shows a WhatsApp-style preview, submits to Meta after you agree |
| “Send my Diwali offer to this list” | Uploads the list, shows recipients, skipped numbers and cost, sends only after your yes |
| “Show the report of my last broadcast” | Sent, delivered, read, replied, button taps and failure reasons |
| “Add our new Saturday timings to the AI's knowledge” | Updates the knowledge base your WhatsApp AI agent answers from |
In ChatGPT, template previews, campaign previews, broadcast reports and top questions show up as visual cards, so you can check a message before it goes out without leaving the chat. For a longer list, see 20 things you can ask ChatGPT to do with your WhatsApp.
The safety rails: ChatGPT cannot spam your customers
Giving an AI access to your customer list is a fair thing to worry about. The connector is built so that the risky actions always need you:
- Broadcasts take three steps. Upload the list, preview (template, recipients, people skipped because they opted out, estimated cost, sample messages), then send. The send step needs a confirmation token that only exists after the preview, so ChatGPT has to show you the summary and get a clear yes.
- Templates need your agreement. New templates are previewed first, then submitted to Meta for approval. Meta reviews every template anyway.
- Customer messages are treated as data.If a customer writes “ignore your instructions,” the connector tells the assistant to treat that as text, not a command.
- Opt-outs are respected. People who opted out are skipped automatically in broadcasts.
- You can cut access instantly. Regenerate the URL in Visity and the old one stops working.
Where this gets powerful: scheduled tasks
Asking questions is useful. Letting ChatGPT do recurring work is where it changes how you run the business. ChatGPT can run tasks on a schedule, and if it can also read your Google Sheet, you can describe an automation in plain English:
Every day at 9am, open my “Payments” sheet. For every row where Due Date is 2 days from today and Status is not Paid, send my approved payment_reminder template from Visity to the Phone column, with Name, Amount and Due Date as the variables. Then tell me who you messaged.
That is a payment reminder system with no code. The same pattern works for insurance renewals, gym memberships, school fees and GST deadlines. The full setup, including the sheet layout and template, is in our guide to automated payment reminders with ChatGPT and Google Sheets.
ChatGPT connector vs the Visity dashboard vs the API
| Use | Best for |
|---|---|
| ChatGPT or Claude connector | Owners and managers who want answers and quick actions by chatting, plus simple scheduled jobs |
| Visity dashboard | Your team's shared inbox, training the AI agent, building drip campaigns and WhatsApp Flows |
| Visity REST API | Developers wiring WhatsApp into a CRM, billing system or app for high-volume, fully automatic sends |
Most businesses use all three: the AI agent answers customers 24/7, the team works the inbox, and the owner checks in from ChatGPT. The connector is included on every Visity plan, including the free one. See pricing for plan limits.
Common problems and fixes
- ChatGPT says it has no WhatsApp tool.Visity is not turned on for that chat. Enable it in the chat's tools menu, or start a new chat.
- “Unauthorized” errors. The URL was regenerated or copied incompletely. Generate a fresh one and replace it in ChatGPT.
- A template send fails.The template may still be pending Meta approval, or a variable is missing. Ask “Show my templates with status all” to see pending and rejected ones with the reason.
- A free-form message fails. Outside the 24-hour customer service window, WhatsApp only allows approved templates. Send a template instead.
Prefer Claude? The same URL works there. Follow how to connect WhatsApp to Claude.
Get started with Visity
Get your ChatGPT connector URL
Sign up free, connect your WhatsApp number, and open the MCP Connector page. Your private URL is ready in one click.
Frequently Asked Questions
Can ChatGPT send WhatsApp messages?
Yes, through a connector. ChatGPT cannot reach WhatsApp on its own, but once you add the Visity connector it can send approved WhatsApp templates, reply inside the 24-hour customer service window, and send broadcasts from your business number on the official WhatsApp Business API. Broadcasts always show you a preview first and only go out after you say yes.
Is it safe to connect my business WhatsApp to ChatGPT?
It runs on the official Meta WhatsApp Business API, not on WhatsApp Web automation, so there is no ban risk from unofficial tools. Your connector URL is private and works like a password. If it ever leaks, generate a new one in the Visity dashboard and the old one stops working immediately.
Do I need a paid ChatGPT plan?
Custom connectors are available on ChatGPT plans that support them, which are the paid plans at the time of writing. The Visity side has a free plan, so you can try the connector without paying Visity anything.
Does the same connector work in Claude?
Yes. The same Visity connector URL works in Claude under Settings, Connectors, Add custom connector. See our guide on connecting WhatsApp to Claude for the steps.
Can I use my personal WhatsApp number?
The number must be registered on the WhatsApp Business API. You can move an existing business number to the API, or use a new one. A number cannot be on the WhatsApp Business app and the API at the same time.
What does it cost to send messages from ChatGPT?
Meta charges per delivered template message (in India about ₹0.86 for marketing and ₹0.12 for utility messages, plus GST). Replies inside the 24-hour window are free. Visity passes Meta's rates through with zero markup; ChatGPT itself does not add a per-message fee.
Written by
Amish ThakerFounder & CEO, Visity
Amish Thaker is the Founder & CEO of Visity, a Meta Tech Provider building WhatsApp AI automation for businesses in India, the Middle East, Brazil, Indonesia and Europe. Previously on the founding team at SwiftSku (YC W21). Hardcore AI optimist.
While you read this, someone messaged your business. Did they hear back?
See Visity handle a real conversation from your business before you commit to anything.
No credit card. No commitment. Setup on a call. Approved Meta Tech Provider.