Optimize Contactless Delivery
In today's world, customers appreciate reliable, useful and up-to-date information with as little human contact as possible.
After a customer has ordered a meal from your restaurant, keep them updated and provide information when they will have the order delivered to their door.
By proactively engaging your customers and letting them know about their delivery status, they will have all the relevant information in their hands and feel more comfortable in the warmth of their homes, or wherever they are safe at the moment.
If they want to change the location or postpone the delivery time, they will be able to do so just by replying to your WhatsApp messages.
Keep the communication seamless and let a chatbot handle any further communication with your hungry customer.
This use case shows you how to send delivery confirmation to your customers over API by using WhatsApp Media Message Templates.
Process Workflow
IMPLEMENTATION STEPS
Steps over API
NOTE
Before you can start sending message templates, your template needs to be approved by WhatsApp. After your delivery_confirmation media message template has been approved, you can personalize it and reuse it for other customers.
Define the media in the header, in this instance the location, and then enter the message content. Also, the message footer can be set for additional information.
Use the additional placeholders to personalize your message.
Template name |
Template header |
Template body |
Language |
Approved |
---|---|---|---|---|
delivery_confirmation | Media - Location |
Hi {{1}}! |
en | ✅ |
To send a delivery location notification to a specific customer using API, follow the steps described below:
-
Log in to the Infobip API Developer Hub and copy your base URL.
(e.g., your personal base URL is: https://{{BASE_URL}}.api.infobip.com/)
NOTE
The personal BASE URL is a simple way to identify who sent the API request. This means we can identify the request through DNS and then find the optimal route for API requests.
2.Open Postman (or a similar tool) and choose the POST method.
3. Replace endpoint with https://{{BASE_URL}}.api.infobip.com/omni/1/advanced
4. Add the Authorization header.
For example, Basic: Base64 encoded username and password.
Learn more about Security and Authorization methods on the Infobip API Developer Hub.
5. Copy the scenarioKey
you previously created.
Learn more about Creating a scenario.
6. Specify the destination phoneNumber
you wish to send the notification to.
Replace the templateName
, latitude
, longitude
, placeholders
, and language
fields with registered ones (refer to the table above).
"scenarioKey":"CC9F01A5DC7BEE2C2B829D203482A654",
"destinations":[
{
"to":{
"phoneNumber":"41793026727"
}
}
],
"whatsApp":{
"templateName":"delivery_confirmation",
"mediaTemplateData": {
"header": {
"latitude": 45.793337,
"longitude": 15.946519
},
"body": {
"placeholders": ["51298783"]
}
},
"language":"en"
}
}
Here's how the message will look like:
PRO TIP
Apart from sharing the delivery location for items and packages, you can create entire digital customer journeys by sending out customers' e-receipts right after they make a purchase.