The waiting room prebuilt component lets you configure your agent so that users can ask the agent to hold—for example, in scenarios where the user needs some time to retrieve requested information.
The waiting room functionality is implemented in several prebuilt components and can be added to non-prebuilt agents and components.
Limitations
In addition to the common prebuilt component limitations, this prebuilt component has the following limitations:
- The waiting room doesn't extend the session timeout. For more information about the default behavior, see Sessions.
- By default, the waiting room component exits after three no-matches or three
no-input built-in events,
or after timing out according to the no-speech timeout configured in
Advanced speech settings.
To increase this limit, configure the no-match and no-input event handlers on
the
Mainpage. - The waiting room exits after the session times out or after it has exhausted
the event handlers on the
Mainpage, whichever occurs first.
Sample dialogs
The following sample dialogs demonstrate common scenarios handled by this prebuilt component.
Successful hold
- The user asks the agent to hold.
- After the user says "I'm ready", the agent returns to the conversation.
| User Input | Agent Response |
|---|---|
| Please say or enter the first part of your credit card number. You can say "play back" at any time to hear the current collected numbers. | |
| I need a minute | |
| No worries. Let me know when you're ready. | |
| Okay I'm ready now | |
| Let's get you back to where you were. Please say or enter the first part of your credit card number. You can say "play back" at any time to hear the current collected numbers. |
Unrecognized input
| User Input | Agent Response |
|---|---|
| Please say or enter the first part of your credit card number. You can say "play back" at any time to hear the current collected numbers. | |
| I need a minute | |
| No worries. Let me know when you're ready. | |
| Nice | |
| Sorry, I didn't get that. I'm waiting till you're ready to proceed. You can say "I'm ready" and we'll continue where we left off. | |
| That's fine | |
| Hmm, I still wasn't able to get that. Please make sure you're saying "ready" | |
| I'm not sure | |
| Sorry, I'm having difficulty understanding your response. |
Naming conventions
This prebuilt component uses the following naming conventions:
| Feature | Format | Example |
|---|---|---|
| Flow | [Component Name] | Waiting Room |
| Component-Specific Intent | prebuilt_components_[component_name]_[intent_name] | prebuilt_components_waiting_room |
Basic setup
To set up this prebuilt component, follow these steps:
- Import the prebuilt component.
- Go to the Dialogflow CX console.
- Select your Google Cloud project.
- Select your agent.
- Select the Build tab.
- Select Start Page in the Pages section.
- Add a new route using the
prebuilt_components_waiting_roomintent, which makes this intent accessible from any page in the flow. For more details, see Flow-level routes. - Click Save.
- On pages where you want to enable the waiting room, add two new routes.
- The first route allows the conversation to return to the page where the
user originally asked the agent to hold:
- Condition:
$session.params.from_waiting_room_reusable_flow = true - Parameter presets:
- Parameter:
from_waiting_room_reusable_flow - Value:
false
- Parameter:
- Transition page: the current page.
- Condition:
- The second route determines what happens after the user has exceeded their
retry limit for no-match or no-input in the waiting room flow:
- Condition:
$session.params.waiting_room_event_handler = true - Parameter presets:
- Parameter:
waiting_room_event_handler - Value:
null
- Parameter:
- Transition page: should be set according to what should happen after the user has used all their retry attempts for the waiting room flow—for example, routing to another page, ending the flow, or ending the session.
- Condition:
- The first route allows the conversation to return to the page where the
user originally asked the agent to hold:
Complete
The prebuilt component is now set up and ready to test.