Agents Pro
Agents let you run specialized assistant personas for different goals (support, sales, onboarding) using the same AskVio workspace and data sources.
Use case: separate support and sales experiences
A common setup is to create two agents:
- Support Agent focused on troubleshooting, setup, and product documentation.
- Sales Agent focused on plans, demos, and qualification questions.
You can then load the right agent per page by passing a different agentId in the widget initialization (for example, support pages vs pricing pages).
Start-to-end implementation
1) Build the agent in the dashboard
- Open Dashboard โ Agents.
- Create a new agent and give it a clear name (example:
Support Agent). - Configure agent instructions and scope for that use case.
- Save your changes and copy the generated
agentId.
2) Implement on your website with GTM
- In Google Tag Manager, create a Custom HTML tag.
- Paste the AskVio script and initialize with your client + agent IDs.
- Attach the tag to the right trigger (for example, only support routes).
- Publish the GTM container.
<script src="https://askvio.web.app/widget.js" async></script>
<script>
window.AskVioWidget.init({
clientId: "YOUR_CLIENT_ID",
agentId: "support-agent"
});
</script>
For another page group (like pricing), duplicate the tag and change agentId to your sales agent value.
3) Test in the dashboard preview UI
- Open the widget preview panel in the dashboard.
- Use the Preview agent selector dropdown to switch between agents.
- The selector used by the preview UI is
#preview-agent-select; confirm the expected agent is selected before testing prompts. - Run a few representative prompts and validate the tone + answers match that agent's purpose.
4) Validate in production
- Open a page where the GTM trigger should load the support agent and verify responses are support-oriented.
- Open a page mapped to sales and verify the different persona is active.
- If needed, inspect page source or GTM preview mode to confirm the expected
agentIdis being initialized.
Basic initialization example:
window.AskVioWidget.init({ clientId: "YOUR_CLIENT_ID", agentId: "support-agent" });