Await Block
Guide to using the "Await" Block in the Grailgun builder
“Await” Block
Section titled ““Await” Block”What is an “Await” Block
Section titled “What is an “Await” Block”The “Await” Block is a special element in the Grailgun builder that allows you to pause scenario execution for a specific time before moving to the next step. This Block is useful for creating pauses in dialogue, simulating data processing, or creating a more natural pace of bot communication with users.
Main Functions
Section titled “Main Functions”- Creating a pause in dialogue for a specified amount of time
- Simulating bot “thinking” or data processing
- Improving user experience through a more natural communication pace
- Managing dialogue flow with time delays
Creation and Configuration
Section titled “Creation and Configuration”How to Add an “Await” Block
Section titled “How to Add an “Await” Block”- Open the bot builder
- From the Blocks panel, select “Await”
- The Block will be added to the workspace
Configuring Wait Parameters
Section titled “Configuring Wait Parameters”- Double-click on the “Await” Block in the builder
- In the opened form, set the delay value
- Click “Save” to apply settings
Using in Scenarios
Section titled “Using in Scenarios”Basic Scenario with Waiting
Section titled “Basic Scenario with Waiting”Typical use case for the “Await” Block:
- “Message” Block sends a message to the user (e.g., “Searching for information…”)
- “Await” Block creates a pause (e.g., 1 minute)
- Next “Message” Block sends the search result
Usage Tips
Section titled “Usage Tips”- Inform the user: Always tell the user that waiting is happening (e.g., “Just a moment, checking information…”)
- Activity indicators: Use messages with ellipsis or emojis like ⏳ to indicate the waiting process
- Combine with other Blocks: The “Await” Block is most effective in combination with “Message” Blocks before and after waiting
- User reminder: The “Await” Block can be used to remind the user about an upcoming event, ask them to answer a question, or perform an action