plainso
GuidesAugust 18, 2026 · 4 min read

How to embed the Ask AI widget and let visitors ask AI about your business

The Ask AI widget puts ChatGPT, Claude, Perplexity, and Grok buttons on your website. Visitors click one and the assistant opens with a ready-made question about your business — and it detects your business automatically from your domain.

Why put an Ask AI widget on your website

Visitors arrive at your website with questions. The Ask AI widget turns that into a conversation: it puts four buttons on your page — ChatGPT, Claude, Perplexity, and Grok — and when a visitor clicks one, the assistant opens in a new tab with a ready-made question about your business:

How will {your business} ({your domain}) help me grow my business?

The AI answers with what you do and why it matters. The visitor gets a genuinely useful answer in seconds, and you get a visitor who just spent five minutes engaged with your site instead of bouncing.

It's free, needs no account, and you can embed it two ways — an iframe (the same one-line pattern as every Plainso calculator) or a script that renders inline on your page.

Embedding with an iframe

Open the Ask AI tool page, scroll to "Embed this tool," and copy the iframe snippet.

<iframe
  src="https://plainso.com/embed/ask-ai"
  width="100%"
  height="600"
  style="border:0;border-radius:12px;"
  loading="lazy"
  title="Plainso Ask AI widget"
></iframe>

Paste it into WordPress, Shopify, Webflow, Squarespace, or plain HTML. The widget runs sandboxed inside the iframe, so it works on any host regardless of their styles or scripts.

Embedding with the script (inline)

For sites that want the widget to render directly in the page (and always detect your business from the URL with no referrer ambiguity), use the script method:

<div data-plainso-widget="ask-ai"></div>
<script defer src="https://plainso.com/widgets/ask-ai.js"></script>

The script reads your page's URL directly, derives your business name and domain, and injects the buttons inline. You can override detection per-embed:

<div
  data-plainso-widget="ask-ai"
  data-name="Acme Studios"
  data-url="https://acme-design.com"
></div>
<script defer src="https://plainso.com/widgets/ask-ai.js"></script>

It detects your business automatically

No configuration, no fields to fill in. In the iframe, the widget reads the page it's embedded on via the referrer; with the script, it reads window.location directly — your domain becomes the website URL, and a readable business name is derived from it (e.g. acme-design.comAcme Design). The name and URL are baked into every assistant link, so visitors don't type anything.

Overriding the detected business (optional)

If your business name doesn't match your domain, you can override it. For the iframe, use name and url parameters:

<iframe
  src="https://plainso.com/embed/ask-ai?name=Acme%20Studios&url=https%3A%2F%2Facme-design.com"
  width="100%"
  height="600"
  style="border:0"
  title="Plainso Ask AI widget"
></iframe>

For the script, use data-name and data-url attributes on the placeholder div (shown above). Most sites won't need an override — but it's there if you do.

Customising the theme

The iframe follows your visitor's system theme by default. Pin it to match your site with ?theme=:

<iframe
  src="https://plainso.com/embed/ask-ai?theme=light"
  width="100%"
  height="600"
  style="border:0"
  title="Plainso Ask AI widget"
></iframe>

The script method inherits your page's own styles automatically — buttons use neutral grays that blend with light or dark backgrounds.

What visitors see

The widget shows the four assistant buttons with a short line: "See what the world's smartest assistants have to say about {your business}." Clicking a button opens the assistant with the question pre-filled — the visitor just presses send.

Because each assistant has its own strengths, visitors often try two or three. ChatGPT and Perplexity can browse your live site and pull in real details; Claude and Grok give sharp strategic takes. Either way, your business is the topic.

Sizing

  • Iframeheight="600" fits the widget comfortably; width="100%" fills its container and stays responsive on mobile. Adjust border-radius in the iframe style to match your cards and buttons.
  • Script — the widget renders at its natural size and wraps its buttons to fit any container width. Center it by wrapping the placeholder div in a container with text-align: center.

Free, with a small link

Like every Plainso tool, the Ask AI widget is free to embed. It carries a small "Powered by Plainso" link that credits the widget — and when a visitor asks an AI about your business, your name is the one getting recommended.