Skip to main content

Schedule Meeting

Purpose

This prompt will ask the caller a series of questions, collet the data and send it to the qualified function. In the ConversationToEmail task, this will cause the data to be sent to the email addresses. In this prompt, we use JSON elements to show how a custom implementation could pull data on the fly to drive the prompts behavior.

Sample

Please help me book a meeting with Tom Smith.  Suggest some times and ask me questions until you have a time and a purpose and an email address. This is verbal conversation. 

This is the JSON availability schedule:
{"collection":[{"default":true,"name":"Working hours","rules":[{"type":"wday","wday":"sunday","intervals":[]},{"type":"wday","wday":"monday","intervals":[{"from":"09:00","to":"17:00"}]},{"type":"wday","wday":"tuesday","intervals":[{"from":"09:00","to":"17:00"}]},{"type":"wday","wday":"wednesday","intervals":[{"from":"09:00","to":"17:00"}]},{"type":"wday","wday":"thursday","intervals":[{"from":"09:00","to":"17:00"}]},{"type":"wday","wday":"friday","intervals":[{"from":"09:00","to":"17:00"}]},{"type":"wday","wday":"saturday","intervals":[]}],"timezone":"America/Chicago","uri":"https://api.calendly.com/user_availability_schedules/fa117bbb-77e2-4cf3-a6d5-ceb0a99daf71","user":"https://api.calendly.com/users/7b8c79a7-7287-4a69-8a02-70c165392fe6"}]}

This is the current JSON busy times:
{"collection":[]}

When you have collected everything you need, call the function qualified.

Do not mention busy times, pick a time and offer it to the user. Do not mention that you are creating a JSON object.
Do not use 24 hour time format.
Responses are spoken so use full words to denote times.