How to set up an AI chatbot for WhatsApp DMs (Step-by-Step)
Learn how to set up an AI chatbot for WhatsApp DMs step by step. Follow the process to connect WhatsApp Cloud API through Pepper Cloud, authorise your Meta account, configure your WhatsApp channel, understand messaging rules and troubleshoot common integration issues.
Key takeaways
- An AI chatbot for WhatsApp DMs answers customer questions, shares business information and handles follow-up enquiries.
- The WhatsApp Business Platform is generally needed to connect AI chatbots through an API.
- Set up the chatbot by connecting your Meta account, selecting your WhatsApp number and creating a messaging channel.
- Add business information, configure automated replies, enable lead capture and set up human handoff.
- Follow WhatsApp's 24-hour messaging rule, template approval, customer opt-in and human support requirements.
- Follow Singapore's PDPA requirements when collecting customer information and sending marketing messages.
- Fix common issues by checking account permissions, webhooks, phone number settings, chatbot knowledge and message templates.
- Test the chatbot before launch and keep its business information updated for accurate replies.
The moment a customer sends a WhatsApp DM asking about a product, price or delivery, they expect a quick, relevant answer.
If your team is busy or unavailable, that enquiry could go unanswered and a potential sale could slip away. An AI chatbot for WhatsApp DMs helps prevent this by automatically understanding incoming messages, retrieving relevant business information and responding to customers.
To set up an AI chatbot for WhatsApp DMs, connect a WhatsApp-compatible chatbot platform to your business messaging account, add your business information, configure automated responses and test the chatbot before activating it.
Once configured, the chatbot can answer customer questions, share product details, collect lead information and transfer enquiries to human agents when needed.
How does an AI chatbot work with WhatsApp DMs?
An AI chatbot works with WhatsApp DMs by processing incoming WhatsApp messages, understanding what the customer is asking and generating a relevant response based on its trained business information.
It can also use the conversation context to handle follow-up questions.
Here's how the process works:
- Receives a customer message: A customer sends a question to your business on WhatsApp.
- Understands the question: The AI analyses the message to identify the customer's intent and what information they need.
- Finds relevant information: It checks its knowledge base for details related to the question, such as product information, pricing, services or business policies.
- Generates a response: The AI uses the available information and its instructions to prepare a relevant reply.
- Continues the conversation: The chatbot responds to follow-up questions and can transfer the enquiry to a human agent when it cannot handle the request.
WhatsApp Business app vs WhatsApp Business Platform: Which do you need?
You generally need the WhatsApp Business Platform to connect an AI chatbot through an API integration.
The WhatsApp Business app is designed for businesses that manage messages directly, while the Platform allows external software to send and receive WhatsApp messages.
If your business already uses the WhatsApp Business app, check whether your chosen provider supports number migration or app and Platform coexistence. The available options depend on your account eligibility and integration method.
How to set up an AI chatbot for WhatsApp DMs
To set up an AI chatbot for WhatsApp DMs, first connect your WhatsApp Business account through the WhatsApp Cloud API integration.
This requires authorising the AI chatbot through your Meta Business account, selecting your WhatsApp Business assets and creating a messaging channel.
Once the channel is connected, you can configure the chatbot's knowledge base, automated responses, lead capture and human handoff settings.
Follow these steps to connect an AI chatbot for WhatsApp DMs.
Step 1. Prepare your WhatsApp Business account
Before starting the integration, make sure you have the following:
- Access to your Meta Business Manager account.
- A verified business account on Meta.
- A valid payment method added to your Meta account.
- A WhatsApp phone number that meets the connection requirements.
Check whether your phone number is already linked to another WhatsApp account. If you plan to connect an existing number, review the migration requirements before proceeding.
Important: Back up any WhatsApp data you need to retain before starting the connection. Existing WhatsApp data may be permanently erased during the setup process, depending on the number's current configuration and migration method.
Step 2. Open the channel integration settings

Log in to your Pepper Cloud account and navigate to Settings > Integration.
- Open the Channels integration option.
- Select Integrate to view the available messaging channels.
- Choose WhatsApp Cloud API from the list.
- Click Next to continue.
Pepper Cloud offers multiple channel integration options, including WhatsApp Twilio, Facebook Messenger and Instagram. Select WhatsApp Cloud API to connect your WhatsApp Business account directly through Meta's platform.
Step 3. Connect your Meta account

After selecting WhatsApp Cloud API, Pepper Cloud displays the connection requirements and a Continue with Facebook option.
- Review the prerequisites and data-related warnings.
- Confirm that you understand the requirements before proceeding.
- Click Continue with Facebook.
- Log in to the Meta account that manages your business assets, if prompted.
- Review the permissions requested by Pepper Cloud and continue with the authorisation process.
Use the Meta account that has access to the correct business portfolio and WhatsApp Business account. This ensures that you can select the intended business assets during the next stage.
Step 4. Select your WhatsApp Business assets

Meta will prompt you to choose the business assets you want to connect to Pepper Cloud.
- Select your Business portfolio.
- Choose the WhatsApp account you want to connect.
- Continue to the WhatsApp Business display name screen.
- Enter or confirm the display name customers will see when they receive messages from your business.
- Review the access permissions requested by Pepper Cloud.
- Click Confirm to authorise the connection.
If your Meta account manages multiple businesses or WhatsApp accounts, double-check your selections before confirming. Choosing the wrong assets could connect a different business number to Pepper Cloud.
Step 5. Select your WhatsApp phone number
After Meta authorises the connection, return to the Pepper Cloud setup window.
- Select the WhatsApp phone number you want to use for business messaging.
- Verify that the selected number is correct.
- Click Next to proceed to the channel configuration.
The available phone numbers depend on the WhatsApp Business account and the assets you selected during Meta authorisation.
Step 6. Configure and create your WhatsApp channel
Pepper Cloud will prompt you to enter the channel details.
- Enter a Channel name to identify the WhatsApp account within Pepper Cloud.
- Choose whether to make the channel private. A private channel is accessible only to users who have permission to view it.
- Complete any additional channel details requested on the screen.
- Review the information and click Finish.
After successful setup, Pepper Cloud displays a confirmation message indicating that your WhatsApp channel has been added.
Step 7. Verify your WhatsApp channel connection

Once the setup is complete, return to Settings > Integration > Channels and check whether your newly connected WhatsApp account appears in the channel list.
You can also open the Messages section to check the connected messaging channel and confirm that it is available for handling incoming enquiries.
With the WhatsApp channel connected, you can move on to configuring your AI chatbot's business knowledge, response instructions, lead capture and human handoff settings.
What WhatsApp messaging rules should your AI chatbot follow?
Your chatbot must follow WhatsApp's Business Messaging Policy when responding to customers. The rules cover the 24-hour customer service window, approved message templates, customer opt-in and access to human support.
Singapore businesses should also consider applicable local privacy and marketing requirements when collecting customer information or sending promotional messages.
1. Follow the 24-hour customer service window
When a customer sends your business a WhatsApp message, a 24-hour customer service window opens. During this period, your chatbot can send free-form replies. Each new customer message resets the window.
After the window closes, business-initiated messages generally require approved WhatsApp message templates.
Configure your messaging workflows to recognise whether the service window is open before sending a reply or follow-up.
2. Use approved message templates outside the service window
Businesses must use approved message templates to initiate or continue conversations outside the 24-hour customer service window.
For example, if a customer enquires about a product from a Singapore retailer and does not reply for more than 24 hours, the business cannot simply send an ordinary free-form follow-up message.
Instead, it must use an approved template that matches the purpose of the communication, such as an eligible order update or marketing message.
3. Obtain customer opt-in for business-initiated messages
Customers should understand what messages they are agreeing to receive. Follow WhatsApp's opt-in requirements and obtain appropriate permission before sending business-initiated communications.
For example, if an online store in Singapore invites customers to subscribe to WhatsApp promotions during checkout, it should clearly explain that they are signing up for promotional messages.
Your messaging process should:
- Explain the purpose and type of messages customers will receive.
- Obtain permission for the relevant message categories.
- Provide clear instructions for opting out.
- Respect requests to stop receiving messages.
Singapore businesses should also review the Personal Data Protection Act (PDPA) and relevant Do Not Call requirements where applicable. The requirements depend on the type of communication and the circumstances. Refer to the PDPC's guidance on consent for direct marketing when designing marketing consent processes.
4. Provide access to human support
WhatsApp requires businesses using automation to provide clear and direct ways for customers to reach human support.
Make sure customers can request an agent and receive an appropriate escalation route. If an agent is unavailable, explain what the customer should do next rather than leaving them in an automated response loop.
5. Avoid spam and misleading responses
Send messages that customers expect and find relevant. Repeated promotional messages, misleading product claims and irrelevant follow-ups can lead customers to block or report your business.
Instruct your chatbot to use verified information, avoid unsupported promises and respect customer requests to stop receiving messages. WhatsApp may restrict messaging activity or remove business access when an account violates its policies.
6. Follow WhatsApp's business and commerce policies
Review WhatsApp's Business and Commerce Policies before adding products, promotional content or payment-related workflows to your chatbot.
Some products and services are restricted or prohibited on WhatsApp. Check the applicable policies to ensure that your business's catalogue, messages and transaction-related features comply with the requirements.
Common WhatsApp AI chatbot setup issues and how to fix them
If your chatbot does not work as expected, the problem may be related to account permissions, phone number registration, API configuration or the chatbot's knowledge base.
1. WhatsApp number is not connecting
This may happen if the number has not been verified, is linked to another WhatsApp setup or has not been registered correctly.
How to fix it:
- Check whether the phone number is verified in WhatsApp Manager.
- Confirm that it belongs to the correct WhatsApp Business Account.
- Complete the required registration steps.
- Check migration or coexistence requirements if the number is already connected to another setup.
2. Chatbot is not receiving WhatsApp messages
If messages do not appear in your chatbot platform, the incoming message integration may not be configured correctly.
How to fix it:
- Check whether the WhatsApp webhook is active.
- Confirm that the required message events are subscribed to.
- Verify that the integration uses the correct WhatsApp number.
- Review the logs for failed webhook requests.
3. Chatbot is not sending replies
This can happen because of an expired access token, missing permissions or incorrect account configuration.
How to fix it:
- Check whether the Meta access token is valid.
- Confirm that the required WhatsApp messaging permissions are enabled.
- Verify the WhatsApp Business Account ID and phone number ID.
- Review the message error details in your chatbot platform.
4. Chatbot gives incorrect answers
Outdated or conflicting knowledge sources and unclear instructions can cause the chatbot to provide inaccurate information.
How to fix it:
- Update product, service, pricing and policy information.
- Remove outdated or duplicate documents.
- Clarify the chatbot's response instructions.
- Add guidance for questions outside its knowledge base.
5. Human handoff is not working
A handoff may fail if the escalation conditions, team assignments or agent availability settings are incorrect.
How to fix it:
- Check the conditions that trigger escalation.
- Confirm that the correct team or agent is assigned.
- Review agent availability and routing settings.
- Check whether the platform passes the relevant enquiry details to the assigned agent.
6. WhatsApp message templates are failing
A template message may fail if it has not been approved, contains incorrect information or is being used incorrectly.
How to fix it:
- Check the template's approval status in WhatsApp Manager.
- Confirm that the correct approved template is being used.
- Review the template content and required variables.
- Check the error details provided by your chatbot platform.
If the issue continues, review the integration logs and contact your WhatsApp solution provider. Meta's WhatsApp Business Platform documentation provides further information about account setup, permissions and messaging errors.
Watch how to add a chatbot to messaging channels
Watch how to add a chatbot to messaging channels
Final thoughts
A WhatsApp AI chatbot needs three things to work effectively: reliable business information, clear response instructions and a defined process for transferring enquiries that require human attention.
Start by configuring the questions your customers ask most often. For a Singapore business, these might include product availability, prices, delivery arrangements or service bookings. Test those scenarios before launch, check that your messaging setup follows WhatsApp's requirements and keep the chatbot's information up to date.
This gives your business a practical way to manage routine WhatsApp enquiries while allowing employees to focus on requests that need their attention.
Frequently asked questions
1. Can I set up an AI chatbot for WhatsApp DMs without coding?
Yes. You can use a no-code AI chatbot platform that supports WhatsApp integration. These platforms let you connect your WhatsApp Business account, add business information, configure chatbot responses and manage automation without writing code. Direct Cloud API integration, on the other hand, generally requires development work.
2. Can an AI chatbot understand voice messages on WhatsApp?
Yes, if the chatbot platform supports audio processing. It can convert a customer's voice message into text, understand the request and generate a response. Check whether your chosen platform supports voice message transcription and audio-based interactions.
3. Can I use the same WhatsApp number for my AI chatbot and human agents?
Yes. Depending on your WhatsApp setup and provider, you can use the same business number for chatbot automation and human agent support. The chatbot can handle routine enquiries and transfer requests to agents when a customer needs personal assistance. Check whether your provider supports this setup.
4. Can an AI chatbot handle multiple WhatsApp DMs at the same time?
Yes. An AI chatbot can process multiple incoming WhatsApp messages simultaneously, depending on the platform's capacity and configuration. This allows businesses to handle several customer enquiries without requiring an agent to reply to every message individually.
5. How much does it cost to set up an AI chatbot for WhatsApp?
The cost depends on the chatbot platform, WhatsApp messaging charges and the features you need. Some platforms charge a monthly subscription or usage-based fee, while Meta applies separate charges for applicable WhatsApp messages. Check both the platform's pricing and Meta's current rates before choosing a solution.