Guides
Ask AI widget
Put the widget on your docs or site, choose where it can run and make it look like yours.
Install
One script tag, on every page where you want the Ask AI button. Replace YOUR_ASSISTANT_SLUG with your assistant's slug: the portal shows the line ready to copy on the assistant's Overview and under Channels → Widget on your site, with Next.js and WordPress versions.
<script src="https://widget.almanzor.cloud/embed.js" data-agent-id="YOUR_ASSISTANT_SLUG" defer></script>Static site generators and docs frameworks (Docusaurus, Mintlify, MkDocs, VitePress…) have a setting or a layout file for extra scripts in the page: add the same tag there.
Allowed domains
The widget only runs on sites you allow, so nobody can put your assistant on their page. When you create an assistant from a URL, that domain is allowed already. To add more (a staging site, a second domain), go to Channels → Widget on your site in the portal and add it there.
Adding a domain there allows it both to show the widget and to call the chat API. To edit the two lists by hand, open For developers → Domains: full lists at the end of the same page, and keep https://widget.almanzor.cloud in the chat API list if you use the hosted widget.
Appearance
Under Appearance: the name in the chat header and a role under it, the greeting, up to eight starter shortcuts, your brand color and logo, and whether the chat opens on its own when the page loads (off by default). Changes apply to the widget, the share link and the test chat.
Language
The button and the chat come in English or Spanish. By default they follow the visitor's browser. For a browser in any other language they use your page's language (the lang of its <html> tag), and English if that isn't Spanish either. To always use one language, pick it under Appearance → Widget language, or set it on the script tag, which wins over the portal setting:
<script src="https://widget.almanzor.cloud/embed.js" data-agent-id="YOUR_ASSISTANT_SLUG" data-lang="en" defer></script>This sets the interface text. The default greeting is translated too; a greeting you wrote is shown as you wrote it. Answers follow the visitor: the assistant replies in the language they write in, unless your instructions say to always use one.
Visitor contact (optional)
Turn on Behavior → Ask for the visitor's contact (Starter and up, off by default) and, when the assistant can't answer, the widget offers the visitor to leave their email so you can write back. You choose whether it's only after an unanswered reply or also behind a “Talk to a person” button, whether to ask for a name and phone, the invitation text and the link to your privacy policy.
Visitors tick a consent checkbox before sending. You get an email, and the contact shows on the conversation in Results → Conversations (filter “Left their contact”, also in the CSV export). Deleting the conversation deletes the contact. The form appears on your site, the share link and the QR code, not in the portal's test chat.
Test without affecting your analytics
Press Try in the portal and pick how to test. Quick preview isn't saved. As a visitor opens the real widget on its share link, and On your site opens your site with the widget already installed, both in test mode.
In test mode the widget shows a notice, and the conversation is saved in Results → Conversations with a “Test” tag (filter “Tests”), but it's left out of analytics, AI reviews, unanswered questions and the weekly email. It still counts towards your plan's conversations. On your site, the browser stays in test mode until you press Exit on the notice; you can also add ?almanzor_test=1 or ?almanzor_test=0 to any page yourself. Through the API, send "test": true in the chat request.
Share link and QR code
Every published assistant also has its own page, useful for a support email, a README or a QR code on a slide:
https://almanzor.cloud/agent/YOUR_ASSISTANT_SLUGThe link, its QR code and a share preview are under Channels → Link and QR code.
WordPress
There's a plugin, so you don't have to edit your theme:
- Download
almanzor.zipfrom GitHub Releases and install it under Plugins → Add New. - In WordPress, open Settings → Almanzor and paste your assistant's slug, from Channels → Widget → WordPress in the portal. The widget now shows on your site.
- Optional, to test the connection and import your site from WordPress: create an API key under Settings → API keys and add it with the assistant's ID.
More on the WordPress page (in Spanish).
Can't find something? Ask the assistant in the corner: it answers from these docs and links the page.