How to perform different actions using a Conditional Jump

Learn how to perform different actions with jump steps when a value is present or not present. This design template will teach you how to fetch a value using the web scraper, then check for it using a 'Conditional Jump' step. The bot will then perform a different action depending on the outcome.

This template is a design pattern. Additional steps will be required to make it a functional bot.

# Advantages to following this design pattern

  1. Quickly extend, adding additional steps to suit your use case.

# Install the Conditional jump step

Just click 'Install template'. If you are a new user you will be required to create an Axiom.ai account before you can edit the template.

# Set up the first 'Interact with a page's interface' step

In this Interact Step, use the 'Get data from a webpage' to scrape the value to check.

  1. Go to page, Enter URL - Add a URL
  2. Select - The value to scrape from the web page. Leave 'Max Results' on one.

# Set up the 'Conditionally jump to another step' step

This Conditional step will check for the value and jump steps if found.

  1. Data to check - Click 'Select Data' and set to 'all-interaction-data'.
  2. Words to check (comma separated) - Type in the value you are looking to find.
  3. Word matching mode - Leave set to 'Any'.
  4. Match on word boundary - Leave unticked.
  5. Jump to step - The number of the step your jump should end on.
  6. Reverse condition - Leave unticked.
Conditional jump step Axiom.ai

Top Tip - Adding steps changes change change the step ordering in the Axiom.

# Set up the 2nd 'Interact with a page's interface' step

This step performs actions your bot would do if the value is missing.

  1. Click 'Add a sub step' and customise this template.

# Set up 'Jump to another step'

This step jumps back to the top to repeat the test.

  1. Jump to step - To loop the conditional check, jump back to step one.
  2. Maximum cycles - Set the amount of loops the bot must perform.

# Set up the 3rd 'Interact with a page's interface' step

When the condition is true, the bot will jump here. Add the sub steps you require to complete this bot.

  1. Click 'Add a sub step' and customise this template.

# Set up 'Jump to another step'

Jump back to the top to loop or remove to make the bot stop.

  1. Jump to step - To loop the conditional check, jump back to step one.
  2. Maximum cycles - set the amount of loops the bot must perform.
Axiom.ai loop with a jump step

# Troubleshooting the data entry bot

Looping can be tricky. Check your Jump steps if you have issues.

  • But always Jumps back, check word matching is set to any.
  • Check the settings in the 'Jump to another step'

# More design patterns