- Tools & Actions
- Navigate to Page
Agency & Reseller
Navigate to Page Action
The Navigate to Page action enables your AI agent to automatically navigate visitors to relevant pages on your site after answering their questions. The system constructs the navigation URL from your configured template and fills in dynamic parameters based on the conversation context.
How it Works
Source URL Mode
When your URL template contains no variables, the system uses the first source URL from the chatbot’s knowledge base results. This is useful for navigating visitors to pages your chatbot has indexed.
Template Mode
Template variables are matched automatically. You don’t need to configure anything special in your MySQL or API action. The system scans all tool results for columns matching your URL template variable names. If the AI’s query doesn’t return the exact columns, the system runs a supplementary lookup using the same database connection and query filters.
Navigation Modes
Mode
Behavior
Show a clickable button
Navigate immediately
Show message then navigate after delay
Add a Navigate to Page Action
1
In your chatbot dashboard, click Configuration in the sidebar, then select Tools & Actions.
2
Click the + Add Action button.
3
4
Click Add next to Send Navigate to Page.
Configure the Action
1
- Name: Give your action a descriptive name (e.g., navigate_to_products)
- Description: Describe when the AI should navigate the visitor (e.g., “Navigate visitors to the filtered product listing page after answering product questions.”)
2
- Enter the URL to navigate to. Use {{variable_name}} for dynamic values that will be filled in from tool results.
- Examples:
- Static (source URL mode): https://yoursite.com - navigates to the source page from knowledge base results
- Dynamic: https://yoursite.com/search?category={{category_id}}&location={{state_id}} - constructs the URL from tool result fields
3
- If your URL template contains variables, define them as a JSON object. Keys are the variable names, values are descriptions.
{
"category_id": "The product category ID",
"state_id": "The state or location ID"
}
4
- Show a clickable button (default) - safest option, gives visitors control
- Navigate immediately - best for search result pages
- Show message then navigate after delay - gives visitors a chance to cancel
5
- Button Label (button mode only): The text shown on the button (default: “Go to page”)
- Delay (delay mode only): Seconds to wait before navigating (default: 3)
6
- Click Add Action to save your configuration.
Using with MySQL Database
When combined with the MySQL Database action, the Navigate to Page action can construct URLs from database query results. The URL template variable names must match column names or aliases in the database.
- Set the URL template to https://yoursite.com/search?interests={{interests}}
- Ensure the database table or view the AI queries contains a column named interests with the numeric ID
The system automatically runs a supplementary lookup if the AI’s query doesn’t include the required columns. It extracts the WHERE clause from the AI’s query and runs a targeted query to fetch the missing values using the same database connection.
MySQL Table Filter
Embed Script Requirement
- Navigation works on any page where the chatbot widget is embedded via the standard JavaScript snippet.
- Navigation does not work on the share page (/share/{chatbotId}) since there is no parent page to navigate
Ready to automate your customer service with AI?
Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.