< All Topics
Print

How to send WhatsApp notifications in e-Janji using OnSend

This guide shows you how to connect eJanji.com with OnSend.io to send WhatsApp notifications — such as booking confirmations, reminders, and cancellations — automatically through your e-Janji booking system.

Sections:

  1. Introduction – What OnSend.io is and why to use it
  2. Before You Start – Prerequisites (e-Janji account + OnSend.io account)
  3. Step 1: Sign Up at OnSend.io
  4. Step 2: Set Up WhatsApp Channel on OnSend.io
  5. Step 3: Get Your API Key
  6. Step 4: Configure Webhook in e-Janji
  7. Example Notifications: Content type → JSON
  8. Example Notifications: Content type → Form Data
  9. Troubleshooting & Tips

What Is OnSend.io?

OnSend is a WhatsApp automation platform that allows you to send messages through your own number or WhatsApp Business API.

By connecting e-Janji with OnSend, your customers and staff can receive automated WhatsApp messages for every booking event.

Before You Start

You’ll need:

  • An active eJanji.com account
  • A WhatsApp number (personal or business) connected to OnSend
  • A free or paid OnSend account — sign up at OnSend Malaysia

Step 1: Sign Up at OnSend.io

  1. Visit OnSend.io
  2. Click “Sign Up Free” and create your account.
  3. Log in to access your OnSend Dashboard.

Step 2: Connect Your WhatsApp Number

  1. In the OnSend dashboard, go to Devices → Add Device.
  2. Scan the QR code using your WhatsApp app (linked devices).
  3. Once connected, the status will show “Connected”.
OnSend - Device

Step 3: Get Your API Key

  1. Go to OnSend dashboard.
  2. View the device , copy the token. You’ll use this token inside your e-Janji settings.
OnSend - Device

Step 4: Configure Webhook in e-Janji

  1. Log in to your e-Janji account.
  2. Go to Workflow → Create New Workflow
  3. Choose Send HTTP(S) request from Select Action options as your sending method.
  4. From URL, select “POST“. Paste the OnSend Webhook URL: https://onsend.io/api/v1/send
  5. Add new header, enter “Authorization“, and set the value to “Bearer TOKEN“, where TOKEN represents your OnSend device token, for example, 9cc97a40db218abb3f25d7c6c728e2ed8…..
  6. Select Content type; there are two types (Form data and JSON) with examples shown below.
  7. Click Save button.

From now on, every booking event (new booking, reminder, cancellation, etc.) will trigger e-Janji to send a notification payload to OnSend.

Webhook JSON

Example Notifications: Content type → JSON

Here are sample payloads e-Janji sends to OnSend for different events. You can add Dynamic content when making your messages.

1. Appointment Confirmation
Copy to Clipboard
2. Appointment Reminder
Copy to Clipboard
3. Appointment Rescheduled
Copy to Clipboard
4. Appointment Cancellation
Copy to Clipboard

For more JSON sample code or content, please visit our knowledge base as follows:


Example Notifications: Content type → Form Data

Like the JSON Content type, the POST URL and Header remain the same; the only difference is that the content type is set to “Form Data,” allowing you to easily include any Dynamic content in the form.

Remember that the form data must remain the same:

  • phone_number
  • message
  • type = text
Webhook JSON

Troubleshooting & Tips

  • Ensure your WhatsApp device in OnSend is always connected.
  • You can check webhook delivery logs in both e-Janji and OnSend dashboards.

Here are some common checks and best practices to ensure your WhatsApp notifications run smoothly:

Connection Issues

  • Make sure your WhatsApp device in OnSend stays connected and online. If it disconnects, no messages will be sent.
  • Refresh your OnSend dashboard and re-scan the QR code if the device shows as “Disconnected”.

Message Delivery Problems

  • Verify that your Webhook URL in e-Janji is correct and active.
  • Ensure that phone numbers use the correct international format (e.g., `60123456789` for Malaysia).
  • Check the OnSend Messages section to confirm that the message status is Success.

Data & Template Mapping

  • Double-check that the Dynamic contents in your e-Janji message are correct.
  • Use the example JSON payloads above to verify your data structure.
  • Always run a test booking before going live.

Support & Resources

  • OnSend.io FAQs: https://onsend.io/#faqs
  • OnSend Tutorials: https://onsend.io/tutorials
  • e-Janji Support: support@ejanji.com

If all settings are correct and your WhatsApp device is active, e-Janji and OnSend will work together seamlessly to deliver instant WhatsApp updates to your customers and team.

Go to Top