Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

We are delighted to present a powerful addition, a feature that empowers users to take specific actions based on the delivery statuses of notifications. This enhanced capability leverages Omnichannel communication and integrates seamlessly with webhooks, allowing clients to harness real-time data and automation for a more responsive and personalized customer experience. With this feature, users can define custom actions that correspond to various delivery statuses, ensuring that their interactions with customers are not only timely but also tailored to Specific Requirements.

Omnichannel Phase 1

User can set up a system to keep track of the status of your SMS notifications and activate a default webhook to capture detailed data throughout the entire notification process. This webhook acts as a central storage point for essential information regarding the status and progression of your SMS notifications.

...

  • If an SMS widget is included in the flow, the Default Webhook (API) will be triggered twice. The first trigger occurs on flow complete, and the second trigger occurs when the delivery status of the SMS is received in the SMSDetailDocument (MongoDB). In general, the webhook will be invoked twice, first on flow complete, and then again when the delivery status is received.

  • the webhook (API response) content is stored in the SMSdetaildocument under the column “notify_on_delivery

Request Body Format (Sample):

Code Block
languagejson
{
  "phonon-uuid": "bd706f90-aa14-47ea-9844-3d1e1123f4ee",
  "smsDetails": [
    {
      "id": "290a4138-5729-475f-95e1-9ff30f851d67",
      "attemptDetail": "bd706f90-aa14-47ea-9844-3d1e1123f4ee##1",
      "phononUuid": "bd706f90-aa14-47ea-9844-3d1e1123f4ee",
      "flowId": 200,
      "accountID": 28,
      "length": 46,
      "cost": {
        "currency": {
          "currencyID": 1,
          "currencyName": "INR"
        },
        "amount": 0.75,
        "serviceCategory": "53",
        "serviceChargeType": "Unit",
        "smsUnit": 1
      },
      "nonEnglishChars": true,
      "smsType": "NORMAL",
      "text": "फोनन में आपका स्वागत है  $flow.key.sms. Phonon",
      "to": "919999999999",
      "from": "PHONON",
      "sendTime": "2023-10-19T11:55:20.408+05:30",
      "deliveryStatus": "DELIVERED"
	  "deliveryTime": "2023-10-19T11:59:12.408+05:30",
    }
  ]
}