View Categories

AISK.CHAT WhatsApp Integration Setup Guide

2 min read

This guide will walk you through setting up WhatsApp integration for your AISK.CHAT chatbot.

πŸš€ 1. Introduction #

This guide explains how to integrate WhatsApp with the AISK Plugin using the Twilio WhatsApp API. It will help you set up webhooks, configure API credentials, and manage user messages.

βš™οΈ 2. Prerequisites #

Before integrating WhatsApp, ensure the following:

  • βœ… A Twilio account with WhatsApp API access.
  • βœ… A verified WhatsApp Business number on Twilio.
  • βœ… AISK Plugin installed and activated.
  • βœ… Webhook URL configured in Twilio.

πŸ— 3. Configuration Steps #

πŸ“Œ Step 1: Twilio Setup #
  1. Log in or Sing Up or Sign up with Google to your Twilio Console. (https://www.twilio.com/try-twilio)
  2. Navigate to Messaging → Try it Out→ Send a WhatsApp Message
  3. Go https://console.twilio.com/us1/account/keys-credentials/api-keys Copy Account SID and Auth Token
  4. Copy The “WhatsApp Number”
  5. In Webhook Configuration, set the following:
    • Webhook URL: https://your-site.com/wp-json/aisk/v1/whatsapp-webhook
    • HTTP Method: POST
  6. Paste your Webhook URL here
  7. Save” Settings

πŸ’¬ 4. Handling WhatsApp Messages #

The plugin supports:

  • Message Handling: Processes user messages and sends responses.
  • Order Inquiries: Allows users to submit inquiries for specific orders.
  • Product Info: Displays product details on user request.
πŸ“Œ Key Commands for Users: #
  • Product Inquiry: Users can ask about products directly.
  • Order Inquiry: If the user types “YES” after receiving an order summary, they can start an inquiry process.
  • Cancel Inquiry: Typing “cancel” exits the inquiry flow.

πŸ›‘ 5. Webhook Security #

The plugin verifies incoming webhook requests using Twilio’s signature verification. Ensure your Auth Token is correctly saved in the settings to avoid unauthorized access.

πŸ›  6. Troubleshooting #

  • ❌ Issue: Webhook not triggering
    βœ… Fix: Verify the webhook URL in Twilio and ensure your site has SSL enabled.
  • ❌ Issue: “WhatsApp: Missing Twilio auth token”
    βœ… Fix: Check the Auth Token in AISK settings.
  • ❌ Issue: Invalid Signature Error
    βœ… Fix: Ensure URL and parameters in Twilio match your webhook settings.

Support #

If you need help:

  1. Check our FAQ section
  2. Contact support through our website
  3. Visit our documentation portal
  4. Join our community forum

Leave a Reply

Your email address will not be published. Required fields are marked *