integrate WhatsApp with your systems: ERP, CRM, your app, or website.
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.
Set Up Your Environment:
Create a PHP File:
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);
}
Upload to Your Server:
test.php
to your server. Your webhook URL will be:
http://your-server/test.php
Using ngrok for Local Testing:
test.php
in your localhost directory.ngrok http 80
https://7647-115-83-121-164.ngrok.io
).localhost
in your URL with the ngrok URL:
https://7647-115-83-121-164.ngrok.io/test.php
Configure Your Ultramsg Instance:
Test Your Webhook:
log.txt
on your server or local environment.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
}
}
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.
Website
Visit ultramsgDocumentation
View Documentation