AdvancedIntegrations
Advanced

Integrations and Connections

Connect Bual Pro with messaging services, AI tools, and payment systems to extend functionality.

Overview

Bual Pro supports seamless integrations with popular services like WhatsApp Business API, OpenAI for intelligent responses, and webhooks for custom workflows. These connections enable you to automate conversations, enhance AI capabilities, and sync data with third-party apps.

Review your Bual Pro dashboard permissions before starting integrations. Ensure you have admin access.

WhatsApp Business API Setup

Follow these steps to connect your WhatsApp Business account to Bual Pro.

Create WhatsApp App

Log in to the Meta for Developers portal. Create a new app and select Business type.

Add Phone Number

Verify your phone number in the app dashboard. Generate a test access token.

Configure in Bual Pro

Navigate to Bual Pro Integrations > WhatsApp. Paste your Phone Number ID, WhatsApp Business Account ID, and Permanent Access Token.

Test Connection

Send a test template message from the inbox to verify setup.

WhatsApp enforces strict template approval. Submit messages for review before production use.

OpenAI Integration

Integrate OpenAI to power chat responses, image analysis, and more. Use your OpenAI API key in Bual Pro settings.

Configure flows to generate responses with GPT models.

const response = await fetch('https://api.openai.com/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${YOUR_OPENAI_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'gpt-4o-mini',
    messages: [{ role: 'user', content: 'Analyze this customer query.' }]
  })
});

Webhooks and Third-Party Apps

Set up webhooks to receive Bual Pro events like new messages or conversation updates. Configure the endpoint in your Integrations > Webhooks section.

const express = require('express');
const app = express();
app.use(express.raw({ type: 'application/json' }));

app.post('/webhook/bual', (req, res) => {
  const event = JSON.parse(req.body);
  if (event.type === 'message.received') {
    console.log(`New message from {event.contact.phone}`);
  }
  res.status(200).send('OK');
});

app.listen(3000);

Next Steps

Explore your new integrations in the Bual Pro inbox. Test broadcasts and AI flows.

View Inbox Guide

Learn inbox management features.

Analytics

Track integration performance.