Chatspark
Pricing
⌘K
⌘K

Per-Page Suggested Prompts

Show visitors different suggested questions depending on which page they are viewing. A visitor on your pricing page sees pricing-related prompts. A visitor on your support page sees support-related ones. No code required.

6 min read

Updated October 2026

Overview

Suggested Prompts are the clickable conversation starters that appear in the chat widget before a visitor sends their first message. By default, your agent shows the same prompts on every page.

Per-Page Suggested Prompts let you replace those defaults with prompts that are specific to the page the visitor is currently on. When a visitor navigates to a page that matches one of your URL rules, the widget automatically swaps in the relevant prompts.

Note
Per-Page Suggested Prompts are available on the Plus plan and above.

Generate Prompts from Your Website

  1. Go to your AI Agent settings and open the Settings tab.
  2. Turn on Per-Page Suggested Prompts.
  3. Click Generate Page Prompts. ChatSpark ranks your successful website training pages and shows a shortlist of up to eight high-value marketing pages.
  4. Review the shortlist and select up to the number of rule slots you have remaining.
  5. Click Generate for N pages. ChatSpark creates four page-specific prompts for every selected page.

You can configure up to eight URL rules per agent. Existing rules are preserved, so the wizard only fills the remaining slots.

One-time generation
The wizard can be completed once per agent. Generated prompts remain editable, and you can add rules manually later. Deleting generated rules does not reset the wizard, so review your selected pages before confirming.

Add or Edit Rules Manually

Click Add URL Rule, enter a URL pattern and up to four prompts, then click Add Rule. You can edit, disable, or delete any generated or manual rule.

URL pattern matching
Patterns use a contains check against the full page URL. A pattern of /pricing matches https://example.com/pricing and https://example.com/pricing/enterprise. When patterns overlap, the most specific pattern takes priority.

Widget Behavior

When a visitor is on a page that matches one of your active URL rules, the widget shows the prompts from that rule instead of your default suggested prompts. The swap happens automatically, including on single-page applications that update the URL without a full page reload.

If a visitor navigates away from a matching page to a page that does not match any rule, the default prompts return. Turning off the Per-Page Suggested Prompts switch disables all page rules without deleting them.

Query-based routes
The website shortlist focuses on normal URL paths. If your site identifies pages only with query parameters, such as /?view=pricing, add that rule manually.
Priority over A/B Testing
Per-Page Prompts take priority over A/B Testing variant prompts. If a visitor is assigned to Variant B and lands on a page with a matching URL rule, they see the page-specific prompts rather than the Variant B prompts.

Example

A software company has three URL rules configured:

  • Pattern: /pricing — Prompts: “What plan is right for me?”, “Is there a free trial?”, “Can I switch plans later?”, “Do you offer discounts?”
  • Pattern: /features — Prompts: “Which features are included?”, “Does this integrate with my CRM?”, “How does the AI learn from my data?”, “Can I try a live demo?”
  • Pattern: /support — Prompts: “How do I reset my password?”, “Where are my invoices?”, “How do I add a team member?”, “What is your response time?”

A visitor who arrives on the pricing page immediately sees pricing-related questions. They do not have to guess what the agent can help with. If they navigate to the features page, the prompts update automatically.

Previous

AI Agent Triggers

Next

A/B Testing for AI Agents