Article

Sending a Time Picker

Let the customer schedule an appointment by sending a time picker.

Overview

When sending an interactive message using a time picker, include a timePicker dictionary, which describes the behavior and content of the picker, in the InteractiveMessageData dictionary. Unless otherwise noted, all text fields support Basic Multilingual Plane of Unicode.

Example of a Time Picker

{ "type": "interactive", "interactiveData": { "bid": "com.apple.messages.MSMessageExtensionBalloonPlugin:0000000000:com.apple.icloud.apps.messages.business.extension", "data": { "event": { "identifier": "804E401B-<truncated>", "location": { "latitude": 37.7725, "longitude": -122.4311, "radius": 100, "title": "Building One" }, "timeslots": [ { "duration": 3600, "identifier": "FC4C7EC2-<truncated>", "startTime": "2020-04-26T08:00+0000" }, { "duration": 3600, "identifier": "31554BA6-<truncated>", "startTime": "2020-04-28T08:45+0000" }, { "duration": 3600, "identifier": "EE201494-<truncated>", "startTime": "2020-04-29T12:30+0000" }, { "duration": 3600, "identifier": "4834FA09-<truncated>", "startTime": "2020-04-30T13:30+0000" }, { "duration": 3600, "identifier": "1990DE34-<truncated>", "startTime": "2020-04-01T15:30+0000" }, { "duration": 3600, "identifier": "5C305995-<truncated>", "startTime": "2020-04-26T16:00+0000" }, { "duration": 3600, "identifier": "D4101D55-<truncated>", "startTime": "2020-04-02T08:30+0000" }, { "duration": 3600, "identifier": "0629060F-<truncated>", "startTime": "2020-04-19T11:00+0000" }, { "duration": 3600, "identifier": "9A0FF16A-<truncated>", "startTime": "2020-04-03T21:30+0000" } ], "timezoneOffset": 0, "title": "Schedule an Appointment" }, "version": "1.0", "requestIdentifier": "8EF748B5-<truncated>" }, "receivedMessage": { "imageIdentifier": "1", "style": "icon", "subtitle": "We'll see you there!", "title": "Schedule an Appointment" }, "replyMessage": { "imageIdentifier": "1", "style": "icon", "title": "Your Appointment" } }
"interactiveData": { "bid": "com.apple.messages.MSMessageExtensionBalloonPlugin:0000000000 :com.apple.icloud.apps.messages.business.extension", "data": { "event": { "identifier": "804E401B-<truncated>", "location": { "latitude": 37.7725, "longitude": -122.4311, "radius": 100, "title": "Building One" }, "timeslots": [ { "duration": 3600, "identifier": "1990DE34-<truncated>", "startTime": "2020-04-01T15:30+0000" } ], "timezoneOffset": 0, "title": "Schedule an Appointment" }, "version": "1.0", "requestIdentifier": "8EF748B5-<truncated>" }, "receivedMessage": { "imageIdentifier": "1", "style": "icon", "subtitle": "We'll see you there!", "title": "Schedule an Appointment" }, "replyMessage": { "imageIdentifier": "1", "style": "icon", "title": "Your Appointment" }, "sessionIdentifier": "c64dcdac-<truncated>"}