User Guide · Automation

Automated messages

Send WhatsApp messages automatically when something happens in your own platform: an order, a payment, an appointment.

Automated messages connect events from your website, store or app to WhatsApp messages that send themselves. Your platform tells Inboxi “order.shipped for +966…”, and Inboxi sends the right message, as a normal chat message or as an approved template, depending on WhatsApp's 24-hour rule. Open Settings › Automated Messages.

Your platform
Calls the events API
POST
Event
e.g. order.shipped + data
matches
24h check
Session message or template
sends
WhatsApp
Delivered to the customer

The Automated Messages page

inboxi.app/settings/automated-messages
Event cards grouped by category.
  1. 1Logs: every send with its status and method.
  2. 2New Custom Event.
  3. 3Filter by category: Education, Orders, Appointments, Payments, Custom, General.
  4. 4Switch the event on or off.
  5. 5System or Custom badge.
  6. 6Configure the message.

System and custom events

System events are ready-made for common cases. If your list is empty, click Create System Events. You can rename their display labels.

CategorySystem events
Educationenrollment.created, enrollment.activated, enrollment.expired, student.performance_report
Ordersorder.created, order.confirmed, order.shipped, order.delivered
Appointmentsappointment.created, appointment.reminder
Paymentspayment.received, payment.failed
Generalcustom.notification

Custom events cover anything else. Click New Custom Event and give it an English event name (it is prefixed with custom. and cannot be changed later), a display label, a description and a category.

inboxi.app/settings/automated-messages
Creating a custom event.
  1. 1Event Name: the technical name your platform sends.
  2. 2Category.
  3. 3Tabs: Message, Template (Outside 24h), Variables.
  4. 4Session Message with {{variables}}.
  5. 5Generate a report page for long messages.

Session message vs. template fallback

WhatsApp only allows free-form messages within 24 hours of the customer's last message. Each event therefore has two versions:

TabUsed whenNotes
MessageThe customer wrote to you in the last 24 hours.Free text with variables and an optional URL button (one CTA).
Template (Outside 24h)The 24-hour window is closed.Pick an approved Meta template and map its {{1}}, {{2}}… to your data fields. You can also create and submit a new template from here.
If an event fires outside 24 hours and no approved template is set, the message fails. Always configure a template for events that can arrive days later (shipping, reminders). See WhatsApp templates.

Generate report page for long messages: outside 24 hours, a message longer than a template allows is turned into a hosted page, and the template links to it. The page expires after 30 days.

Variables

In the Variables tab, list the data your platform will send: key, label, type (Text, Number, URL, Array) and whether it is required. Auto-discover from last data fills the list from the last event received. In messages you can use:

text
Hello {{customer_name}}! Your order #{{order_id}} has shipped.
{{#if tracking_url}}Track it here: {{tracking_url}}{{/if}}
{{#each items}}- {{this.name}} x{{this.qty}}
{{/each}}

Triggering an event from your platform

POST/api/v1/events/triggerFire an event for one phone number
ParameterTypeRequiredDescription
eventstringrequiredEvent name, e.g. order.shipped or custom.homework_submitted.
phonestringrequiredCustomer phone number in international format.
dataobjectoptionalValues for your variables. variables is accepted as an alias.
sendAtstringoptionalOptional time to send later.
curl -X POST https://inboxi.app/api/v1/events/trigger \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event":"order.shipped","phone":"+966500000000","data":{"customer_name":"Sara","order_id":"1042"}}'

Full API details, cooldowns and error codes are in Event messaging and the Events API reference.

Test and logs

  • Saved events have a Test tab: enter a phone number, adjust the auto-filled test data and click Send Test.
  • Logs lists every send with Date, Event, Phone, Method (Session, Template, or Report + Template) and Status (Sent, Failed, Pending, Scheduled).
  • Automated messages are sent through your WhatsApp Cloud API number.