Skip to main content

Wait for Bot

This guide explains how to set up a logic hook in Botium to wait for a bot response for a specified duration.

This logic hook makes Botium wait for a bot response for a specified number of milliseconds (or indefinitely if no value is provided). For example, entering '5000' will instruct Botium to wait for 5 seconds. It can be used only as a Bot Step.

  1. On the left navigation pane, head to Botium Tools & Settings > Test Sets > Your Test Set > Test Cases
  2. Click the + NEW button to add a new Convo, or select a previously created test case from the list.
  3. Add a new + BOT STEP
  4. Click the Edit icon, or anywhere inside the step, and search the list for the 'Wait for Bot' logic hook.

  5. Configure the Logic Hook:
    • Duration: Specify the duration in milliseconds for which Botium will wait for the bot to respond (e.g., 5000 ms for 5 seconds).

  6. Click the APPLY CHANGES button to complete the step entry.

Example Botium Script:
#me
start conversation

#bot
WAITFORBOT 5000
Explanation:
  • WAITFORBOT 5000 instructs Botium to wait for 5000 milliseconds (5 seconds) for the bot to respond before moving on to the next step.

Was this article helpful?

0 out of 0 found this helpful