The WATI provider enables you to deliver professional WhatsApp messages to your customers through the Comify Platform. With a single API integration, you can create seamless multi-channel communication experiences leveraging WhatsApp’s 2 billion+ user base.

Getting Started

Implementing the WATI WhatsApp provider requires four primary steps: creating a WATI account, setting up the WhatsApp Business API, generating a WATI API token, and configuring the WATI integration within your Comify platform.

Creating a WATI Account

Follow these steps to set up your WATI account:

  1. Visit WATI’s official website and select “Sign Up Free”.
  2. Enter all required information to create your account.
  3. Complete any verification process if prompted.
  4. Once verification is complete, you’ll be directed to your WATI dashboard.

Setting Up WhatsApp Business API with WATI

Before generating an API token, you’ll need to set up your WhatsApp Business API:

  1. In your WATI dashboard, navigate to the WhatsApp connection setup section.
  2. Follow the guided process to connect your business number with the WhatsApp Business API.
  3. WATI will guide you through the necessary Facebook Business Manager verification steps.
  4. Complete the business verification process, which may include providing business documentation.
  5. Set up your WhatsApp Business profile with your business information, logo, and description.

Business Requirements for WhatsApp Business API

Before proceeding, ensure your business meets these requirements:

  1. Valid Business Identity: Your business must be officially registered and possess a clear identity that WhatsApp can verify.
  2. WhatsApp Business Policy Adherence: Ensure your business operations align with WhatsApp’s Business Policy.
  3. Customer Consent: You must obtain consent from customers before reaching out to them via WhatsApp.
  4. Dedicated Phone Number: A dedicated phone number that will serve as your business’s WhatsApp identity.
  5. Business Website: A verifiable business website adds credibility and serves as a digital footprint.

Creating a WATI API Token

Follow these steps to generate and secure your WATI API token:

  1. In your WATI dashboard, navigate to the API section.
  2. Look for the API token generation option (typically under “Settings” or “API Documentation”).
  3. The API token can be found under “API docs” in the WATI user interface.
  4. Copy the generated token immediately and store it in a secure location.
  5. Note: Access tokens are app and user-specific. Please do not share the token with anyone, nor post it publicly.

Creating a Comify API Key

Before configuring the WATI integration, you’ll need to generate a Comify API key for authentication:

  1. Access your Comify account dashboard.
  2. Navigate to the API Keys management section at https://cloud.comify.io/settings/api-keys.
  3. Select “Generate API Key” if not already generated.
  4. Provide a clear, descriptive name for your key (e.g., “WATI WhatsApp Integration”) to facilitate future management.
  5. Copy and store this API key in a secure location. You’ll use this key in your application code to authenticate requests to the Comify platform.

Configuring WATI Integration in Comify

To establish the connection between Comify and WATI:

  1. Sign in to your Comify platform dashboard.
  2. Navigate to Integration Store > Add Integration > WhatsApp.
  3. From the available WhatsApp service providers, select WATI.
  4. Enter the WATI API token you generated earlier.
  5. Configure any additional provider-specific settings according to your requirements.
  6. Click Save to finalize the integration.

WATI Comify Integration

Creating WhatsApp Message Templates

After successfully configuring the WATI integration, you’ll need to create and get approval for WhatsApp message templates:

  1. Navigate to the Manage Templates section in your Comify dashboard.
  2. Select the WhatsApp tab from the available channel options.
  3. Click Create Template to begin the design process.
  4. Choose from multiple template creation methods:
    • Pre-approved Templates: Select from WhatsApp’s pre-approved template categories.
    • Custom Templates: Create your own template following WhatsApp’s guidelines.
    • AI-Assisted Design: Utilize the AI Writer feature for automated content generation that follows WhatsApp’s guidelines.
  5. Add variables to personalize your templates where needed (e.g., customer name, order number).
  6. Submit your template for WhatsApp approval (this may take 24-48 hours).

Understanding WhatsApp Message Types

WhatsApp Business API supports several types of messages:

  1. Session Messages: Responses to customer-initiated conversations (24-hour window).
  2. Template Messages: Pre-approved message templates for business-initiated conversations.
  3. Interactive Messages: Messages with buttons, list messages, or reply buttons.
  4. Media Messages: Images, documents, videos, and other rich media content.

Sending WhatsApp Templates

Implement the following code examples in your application to trigger WhatsApp template delivery:

const { Comify } = require('comify-node')

const comm = new Comify('COMIFY_API_KEY')

comm.triggerComm('whatsapp_template_name',{ 
  "order_id" : "123455",
  "customer" : {
    "phoneNumber" : "919876543210",  // with country code
    "customerName" : "Comify"
  }
}, 'whatsappTemplate')

Upon successful API request processing, you will receive a response containing a unique requestId and confirmation message:

{
  "requestId": "016e9d9c-ea29-455c-bf2e-a703e96482fb",
  "message": "your request has been submitted"
}

Important: The API may return a success response even when there are underlying issues with your request. For comprehensive delivery monitoring and troubleshooting, we recommend reviewing the complete request logs in the Activity Feed dashboard.