Infobip Documentation
Home » Use Cases

Contactless Delivery

Use case - Share Food Delivery Time and Location high-level overview

In today's world, customers appreciate reliable information more than anything. Thereby, it is important to provide them with the facts that they will find valuable and useful.

After a customer has ordered a meal from your restaurant, keep them updated and provide information when and where they will have their order delivered.

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 the customer knows when their order will arrive, you reassure them and in turn help them organize their time efficiently until their food is delivered to their doors. 

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

Use case - Share Food Delivery Time and Location 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}}!
Your {{2}} is in the making and will be delivered
to the address seen on the map in approx. {{3}} minutes.

en

To send a delivery location notification to a specific customer using API, follow the steps described below:

  1. 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.


Related Products

Communicate with your customers over the world’s most used Chat app