Setup guide
How to connect an AI agent to WhatsApp
Connect a WhatsApp Cloud API number from your Meta app: paste the access token, phone number ID, app secret and a verify token into Keiki, then put the callback URL Keiki gives you into the Meta app’s WhatsApp webhook settings. Messages route to the agent as soon as that webhook is saved.
Before you start
What you need before you start.
- A Keiki account, which is free to create
- A Meta app with WhatsApp added, and a phone number registered on the Cloud API
- A system user access token with the whatsapp_business_messaging permission
- The phone number ID from WhatsApp → API Setup, plus your app secret
- Access to the Meta app’s webhook settings: Meta has no API for that step, so it is done by hand once
Step by step
Six steps from a Meta app to a number that answers.
Step 1
Create a Keiki account
Sign up at onkeiki.com. WhatsApp messaging is billed by Meta against your own WhatsApp Business account, so Keiki sits on top of the number you already pay for.
Step 2
Start from a template instead of a blank agent
Open the Restaurant Host template. It arrives able to take a booking, answer the questions people actually send at 9pm, and reply in the language the customer wrote in — which is most of WhatsApp’s difficulty, already solved.
Step 3
Collect four values from your Meta app
You need a system user access token with the whatsapp_business_messaging permission, the numeric phone number ID from WhatsApp → API Setup, your app secret, and a verify token you invent yourself. Add the business account ID too and Keiki subscribes the number for you.
Step 4
Add the number in Keiki
On the Channels page, add a WhatsApp number and paste those values. Keiki checks the credentials live and shows which number they own, so you know you are connecting the right line before saving. Attach the agent here or later.
Step 5
Save the callback URL and verify token in Meta
Keiki shows a callback URL and your verify token after the number is created. Paste both into the Meta app’s WhatsApp webhook settings, subscribe the webhook to the messages field — Meta has no API for either, so it is manual — and copy the verify token before you close the dialog, because it is never read back.
Step 6
Message the number from your own phone
Send a real question and watch the thread in Conversations. Customer-initiated chats open a 24-hour window in which the agent can reply freely; outside it, WhatsApp only allows approved templates, which is Meta’s rule rather than Keiki’s.