Overview
The Navigate component lets your agent send users to a specific page on your website — pricing, a product, checkout, docs, or any path.WebChat / Lua Pop only
This component only works in the website chat widget (Lua Pop) and requires an
onNavigate handler in your widget config.Format
pathname— a relative page path (e.g./pricing,/products/laptop,/checkout)?param=value— optional query parameters
How it works
Configure the onNavigate handler
Navigation only works if you pass anonNavigate handler to the widget. It receives the pathname and an options object with the parsed query params.
Query parameters
Pass data to the destination page through the URL:?source=chat), pre-filling forms (?product=123), campaigns (?promo=SAVE10), or opening a specific tab/filter (?tab=specs).
Tell your agent to use it
Components are never used automatically — instruct the agent in its persona or a skill context:Best practices
Add context before the block
Add context before the block
Because navigation is automatic, precede the block with a sentence about where the user is going (e.g. “Here’s the full pricing breakdown:”) so the jump feels intentional.
Use relative paths
Use relative paths
Prefer
/pricing or /products/123 over absolute URLs like https://yoursite.com/pricing — relative paths route correctly through onNavigate.Include tracking parameters
Include tracking parameters
Add
?source=chat (or similar) so you can measure how much traffic and conversion comes from the agent.Troubleshooting
Nothing happens
Nothing happens
Make sure an
onNavigate handler is passed to window.LuaPop.init(). Without it the block is stripped but no navigation occurs. Check the console for errors and confirm the pathname is relative.Query parameters missing
Query parameters missing
Use a single
? and join params with &: /page?a=1&b=2 (not /page?a=1?b=2).Agent never navigates
Agent never navigates
Next steps
Widget Configuration
Set up the onNavigate handler
Widget Events
All widget callbacks and events
Response Formatting
Explore the other components

