Setting up a holiday flow in Dialogue Studio
This guide will show you how to set up a message during holidays and disconnect the conversation. You can either continue with your flow from the previous guide or copy the JSON from the Flow example.
Tip
If you prefer not to follow the step-by-step guide, you can still get started quickly by downloading the Flow example at the end of this article. This will give you a clear idea of how the process works, and you can use it as a starting point to customize your own flow.
Step 1: Add a Holiday node
Start by dragging and dropping a Holiday node between the Incoming and Business Hours node. This will automatically make the holiday node part of the flow. Double-click the Holidays node to configure it. In the timezone field, enter the timezone you want. In the Holiday fields, add the dates you want to use as a holiday. You can choose between a re-occurring date or a date on a specific year. In this example, we will be using May 9th as a Holiday.
Tip
If you want to create a unique message for each date, you will need to use multiple Holiday nodes, as the Holidays node only produces two outputs - either not a holiday or a holiday.
Step 2: Add a Holiday message
To inform customers what to do during a holiday, add a Play node. Enter the URL to a WAV file. In this example, we will be adding a new Play node and re-using one we added in the previous guide.
-
"We are closed for the holidays, please see our website for our business hours"
-
"The call will now be disconnected"
Step 3: Disconnect the Customer
Link the Play node to the Disconnect node we already added in the previous guide. Optionally, you could also use a different Enqueue node if you have a queue available during holidays.
Step 4: Deploy and Test
Click the Deploy button in the top right corner to deploy the call flow. After clicking this, the call flow is live and you can now call the address you assigned to test. If everything works as expected and you call during the configured holiday, you should hear the holiday message and the call should be disconnected. Congratulations, you have now setup a holiday message in Dialogue Studio!
Flow example
To use the JSON file to compare your callflow or use it as a baseline, follow these steps:
-
Click on the menu button in the top right corner or use the Ctr+I shortcut to open the Import window.
-
Paste the content of the JSON into the field.
-
(Optional) Click "New Flow" if you want to import the Callflow into a different tab.
-
Click "Import".
Once imported, configure the Incoming and Enqueue nodes with the address and queue you want to use.
[{"id":"ed1a1487fa671bde","type":"tab","label":"Learn - Setup an holidays flow","disabled":false,"info":"","env":[]},{"id":"ca12d52f1eace396","type":"anywhere365-incoming","z":"ed1a1487fa671bde","name":"","address":"1265e7fd-6a2b-4c67-9e10-f76eac009fb7","x":220,"y":280,"wires":[["c3ab7de8a42f1dd7"]]},{"id":"c1eded3fe02162b3","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"Good morning","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/good-morning.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":900,"y":220,"wires":[["d299032ef90ce154"]]},{"id":"d299032ef90ce154","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"We will now connect you to an agent","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/we-will-now-connect-you-to-an-agent.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":1290,"y":280,"wires":[["730fd4dcd3a7b113"]]},{"id":"dd07dfb831dae89b","type":"anywhere365-settings-bh","z":"ed1a1487fa671bde","name":"","timezone":"Europe/Amsterdam","timezonefilter":"Europe/Amsterdam","businessHours":[{"operator":"weekdays","operands":{"days":[true,true,true,true,true,false,false],"startTime":{"type":"time","value":"09:00"},"endTime":{"type":"time","value":"12:00"}},"label":"Monday, Tuesday, Wednesday, Thursday, Friday (09:00-12:00)"},{"operator":"weekdays","operands":{"days":[true,true,true,true,true,false,false],"startTime":{"type":"time","value":"12:00"},"endTime":{"type":"time","value":"18:00"}},"label":"Monday, Tuesday, Wednesday, Thursday, Friday (12:00-18:00)"},{"operator":"weekdays","operands":{"days":[true,true,true,true,true,false,false],"startTime":{"type":"time","value":"18:00"},"endTime":{"type":"time","value":"21:00"}},"label":"Monday, Tuesday, Wednesday, Thursday, Friday (18:00-21:00)"},{"operator":"otherwise","operands":{},"label":"otherwise"}],"stopOnFirstMatch":true,"time":"","timeType":"msgInput","outputs":4,"x":640,"y":280,"wires":[["c1eded3fe02162b3"],["c3e1b8cbe4bd0c9b"],["22febc36828c1f38"],["4b3c015ef4f4e1bd"]]},{"id":"c3e1b8cbe4bd0c9b","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"Good afternoon","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/good-afternoon.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":900,"y":280,"wires":[["d299032ef90ce154"]]},{"id":"22febc36828c1f38","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"Good evening","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/good-evening.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":900,"y":340,"wires":[["d299032ef90ce154"]]},{"id":"4b3c015ef4f4e1bd","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"We are closed","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/we-are-closed-for-today.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":900,"y":420,"wires":[["1dfb7fb46035062c"]]},{"id":"1dfb7fb46035062c","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"The call will be disconnected","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/the-call-will-be-disconnected.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":1260,"y":420,"wires":[["b26eb6b86f542d0f"]]},{"id":"b26eb6b86f542d0f","type":"anywhere365-disconnect","z":"ed1a1487fa671bde","name":"","dialogueId":"dialogue.id","dialogueIdType":"msg","x":1530,"y":420,"wires":[]},{"id":"c3ab7de8a42f1dd7","type":"anywhere365-settings-holidays","z":"ed1a1487fa671bde","name":"","timezone":"","timezonefilter":"","holidays":[{"operator":"days","operands":{"type":"specific","day":9,"month":"may","year":""}}],"time":"","timeType":"msgInput","x":400,"y":280,"wires":[["dd07dfb831dae89b"],["1ec9f5a0877da31f"]]},{"id":"1ec9f5a0877da31f","type":"anywhere365-play","z":"ed1a1487fa671bde","name":"We are closed for the holidays","dialogueId":"dialogue.id","dialogueIdType":"msg","audioSource":"audio-source-url","valueUrl":"https://dialoguestudio.anywhere365.io/media/learn-examples/we-are-closed-for-the-holidays.wav","valueUrlType":"str","repeat":"0","repeatType":"num","x":950,"y":500,"wires":[["1dfb7fb46035062c"]]},{"id":"730fd4dcd3a7b113","type":"anywhere365-enqueue","z":"ed1a1487fa671bde","name":"","contactCenterSelectedOption":"contact-center-select","contactCenterSelect":"","contactCenterVariableType":"msg","requiredSkillSelectedOption":"required-skill-select","requiredSkillSelect":"","requiredSkillVariableType":"msg","dialogueId":"dialogue.id","dialogueIdType":"msg","x":1560,"y":280,"wires":[]}]