WhatsApp Chatbot for Business: Best Practices with the WhatsApp Business API
Content

A WhatsApp chatbot for business can answer questions, qualify leads, and handle support on the channel many customers use daily. With the WhatsApp Business API and Spoki, you manage templates, the 24-hour session, and opt-in so your chatbot stays compliant and effective.
This guide covers best practices for a WhatsApp chatbot: when to use templates vs session messages, opt-in, and how Spoki fits in. You will find links to registration, pricing, support, book, and the ROI calculator.
How a WhatsApp Chatbot Works with the API
The WhatsApp Business API does not let you send free-form text for the first message or after the 24-hour session has expired. Your chatbot must:
- Start with a template: The first message to a contact (or after 24h of no reply) must be an approved template. Spoki helps you create and send templates so your chatbot can initiate conversations (e.g. “Hi {{1}}, how can we help? Reply with a number: 1 Support, 2 Sales.”). See registration and support.
- Use session messages for replies: Once the user replies, you enter the 24-hour session. During the session, your chatbot can send session messages—free-form replies, buttons, or quick replies (within API limits). No template is needed for each answer. Spoki keeps session and template logic clear so your chatbot does not break the rules. Use pricing and the ROI calculator to plan volume.
Spoki sits between your chatbot (or app) and the WhatsApp Business API: you send templates and session messages via Spoki, and Spoki handles delivery and 24-hour rules. Inbound messages can be forwarded to your webhook so your chatbot logic runs on your server or in your CRM.
Opt-In: Required Before Any Chatbot Message
WhatsApp requires that users have agreed to receive messages before you send them. Best practices for chatbot opt-in:
- Collect consent clearly: When a user registers, clicks a WhatsApp link, or fills a form, ask explicitly if they want to receive messages via WhatsApp. Store opt-in in your CRM or Spoki. Spoki helps you respect opt-out so your chatbot list stays compliant. See registration and support.
- Scope: Tell users what they will receive (e.g. “Support and sales assistance via WhatsApp”). Do not use the same opt-in for unrelated campaigns unless they have agreed. Spoki can segment contacts so your chatbot only messages those who have opt-in for that use case.
- Honour opt-out: When a user sends STOP, your chatbot or app must process it (e.g. update your database, stop sending). Spoki can forward opt-out events to your webhook so your chatbot stays compliant. Use book for webhook design.
Chatbot Use Cases: Support, Lead Qualification, FAQ
Support: A user sends a WhatsApp message (e.g. “I need help with my order”). Your chatbot receives it via Spoki’s webhook, then replies with session messages (e.g. “What’s your order ID?” or “Choose: 1 Order status, 2 Refund”). Within 24 hours you can send as many session messages as needed. After 24h, the next outbound message must be an approved template. Spoki helps you manage this so support chatbots stay compliant. Links: support, pricing.
Lead qualification: Send an approved template to welcome a new lead (e.g. “Hi {{1}}, thanks for your interest. Reply 1 for sales, 2 for more info.”). When they reply, your chatbot can ask questions with session messages and route to sales or support. Spoki delivers inbound messages to your webhook so your chatbot can qualify leads in real time. See book and the ROI calculator.
FAQ: Your chatbot can answer common questions within the session (e.g. opening hours, pricing, registration link). Use session messages for answers; when the session expires, the next proactive message must be a template. Spoki and your chatbot logic keep templates and session in sync. Use registration and support for template ideas.
Integrating Your Chatbot with Spoki
Spoki provides an API and webhooks. Your chatbot (on your server, CRM, or no-code platform) can:
- Send messages: Call Spoki to send templates (with variables) or session messages. Spoki returns delivery status and enforces 24-hour rules.
- Receive messages: Configure a webhook URL in Spoki. When a user sends a WhatsApp message, Spoki posts the event to your webhook. Your chatbot parses it, runs logic (e.g. FAQ, lead routing), and replies via Spoki within the session.
Keep opt-in and opt-out in sync: when a user opts out, your chatbot must stop messaging them. Spoki helps you record opt-out and can notify your webhook. See registration and support for integration help.
Testing and Improving Your Chatbot
Before going live, test your chatbot with approved templates and session flows. Confirm that opt-in is checked before every send and that opt-out (e.g. STOP) is processed and stored. Use Spoki to monitor delivery and webhook responses; fix timeouts or errors so users get replies within the 24-hour window. Over time, review which templates start the best conversations and which session flows convert (e.g. lead to sales). Spoki and support can help you tune chatbot logic and template wording.
Pitfalls to Avoid
- Sending without opt-in: Never let your chatbot message users who have not agreed to WhatsApp. Spoki helps you store and check opt-in so chatbot conversations stay compliant.
- Using free-form for the first message or after 24h: The API requires approved templates in those cases. Design templates that start conversations (e.g. menu, welcome); Spoki sends them. Use session messages only within 24 hours of the user’s last message.
- Ignoring the 24-hour window: Your chatbot has 24 hours after the user’s last message to reply with session messages. After that, use an approved template to re-open the conversation. Spoki keeps session and template logic clear so your chatbot does not miss the window or break the rules. Use the ROI calculator to plan chatbot volume.
Conclusion
A WhatsApp chatbot for business can handle support, lead qualification, and FAQ when you use approved templates for the first touch, session messages within 24 hours, and opt-in for every contact. Spoki works with the WhatsApp Business API so you manage templates, webhooks, and consent in one place.
Ready to build a WhatsApp chatbot? Visit Spoki for the WhatsApp Business API, registration, and pricing. Use support or book for chatbot and webhook design, and the ROI calculator to plan volume.

