Back to Automation Platforms

Integrate AI chatbots with ultramsg

integrate WhatsApp with your systems: ERP, CRM, your app, or website.


Overview

Ultramsg is a software development company that provides a multifunctional API for WhatsApp, enabling businesses to automate communication processes.

Their services include sending and receiving messages, creating chatbots, and integrating with various systems such as ERP and CRM. With flexible pricing plans, Ultramsg emphasizes stability, customer support, and ease of use.

Integration Guide

Step-by-Step Guide to Create a Webhook Using Ultramsg

  1. Set Up Your Environment:

    • For local development, download and install ngrok.
  2. Create a PHP File:

    • Create a file named test.php and add the following code:
      $data = file_get_contents("php://input");
      $event = json_decode($data, true);
      if(isset($event)) {
          $file = 'log.txt';
          $data = json_encode($event)."\n";
          file_put_contents($file, $data, FILE_APPEND | LOCK_EX);
      }
      
  3. Upload to Your Server:

    • If using a server, upload test.php to your server. Your webhook URL will be: http://your-server/test.php
  4. Using ngrok for Local Testing:

    • Save test.php in your localhost directory.
    • Start ngrok with the command:
      ngrok http 80
      
    • Note the generated URL (e.g., https://7647-115-83-121-164.ngrok.io).
    • Replace localhost in your URL with the ngrok URL: https://7647-115-83-121-164.ngrok.io/test.php
  5. Configure Your Ultramsg Instance:

    • Go to your Ultramsg instance settings and paste your webhook URL.
  6. Test Your Webhook:

    • You should now be able to receive webhooks, and they will be logged in log.txt on your server or local environment.

Example JSON Response

You can expect a JSON response like this:

{
    "event_type": "message_received",
    "instanceId": "90",
    "data": {
        "id": "[email protected]_7ECAED9EB68D3474BE591443134C2E3F",
        "from": "[email protected]",
        "to": "[email protected]",
        "ack": "pending",
        "type": "chat",
        "body": "I can't send a message using php code\nCan you help me",
        "fromMe": false,
        "isForwarded": false,
        "time": 1643311467
    }
}

Configure OpenAssistantGPT Webhook

Follow this guide to configure the OpenAssistantGPT webhook: Configure Webhook

Application Usefulness

Ultramsg is highly useful for integrating with OpenAssistantGPT inquiries, allowing businesses to automate responses to user inquiries submitted through the app.

By leveraging Ultramsg's WhatsApp API, businesses can set up a webhook to receive messages and respond automatically using OpenAI's GPT model.

This integration enables seamless communication, where user inquiries—including their email addresses—can be processed and answered in real-time.

This not only enhances customer engagement but also streamlines support processes, making it easier for businesses to manage user interactions efficiently.

Platform Details