Custom Events
Custom Events in LimeChat allow brands to send real-time data from third-party tools, logistics partners, and checkout providers for automation and analytics.
Introduction
All events apart from Shopify Events are considered Custom Events. These events could be from third-party tools, logistic partners, checkout partners, etc.
How to receive custom events?
The Custom Events API allows clients to stream their unique events to our server. Upon receiving these events, the server can trigger corresponding workflows based on the specific event and associated data.
Endpoint
Headers
Content-Type: application/json
x-limechat-uat: <access_token>
You can go to your profile settings: https://outbound.limechat.ai/app/settings/profile and click on the generate new key in case you don’t already have one. The “New API Key” section displays your access token
<aside> 💡 Please keep this token somewhere safe as it won’t be visible again.
</aside>
Untitled x-fb-account-id:<account_id>
It can be found in the account settings: https://outbound.limechat.ai/app/settings/account. The Id section displays the account_id.
Untitled
Body Parameters
distinct_id
: A unique identifier for the user on the client's system. If no distinct ID is available, thephone
parameter can be used as thedistinct_id
.phone
: The user's phone number. It must include the country code.event
: The name of the event that occurred.data
: A JSON object containing additional data related to the event. This can include any kind of key-value pairs.
<aside> 💡 It is recommended that you send event
without any spaces, as some functionality might not work for events that have spaces. MyAwesomeEvent
Good My Awesome Event
Bad My_Awesome_Event
Good my_awesome_event
Great
</aside>
Here is an example request:
In the above example, the event being sent is product_view
. The data
field includes additional information about the event.
Examples
Order Placement Event: When a user places an order.
Here's an example where a user completes a survey:
In this case, the event
is survey_completion
, and the data
field contains information about the survey ID, the time taken to complete the survey, user feedback, and the score obtained in the survey.
Last updated