Add the chat to your website
Choose where your chat answers, copy its code, and paste it once into WordPress, Wix, Shopify, Squarespace, Webflow, an AI-built site, a React, Vue, Angular or Next.js app, or any site.
Getting started · Updated
You add your chat's code to your site once. After that, everything you change in Aidfolk (the look, the welcome message, the knowledge) shows on your site by itself. Visitors see the chat once your agent is live.
1. Choose where your chat answers
- In the app, open your agent › Widget & embed. The first section is Add the chat to your website.
- Under Choose where your chat answers, type your Website address and click Add website. A website includes its subdomains: acme.com covers www.acme.com and shop.acme.com.

2. Copy your chat's code
Under Put your chat's code on your site, pick what your website is built with and copy Your chat's code. It's one line, with your agent's own id in place of YOUR-AGENT-ID:
<script async src="https://app.aidfolk.com/widget/v1/aidfolk-widget.js"
data-agent-id="YOUR-AGENT-ID"
data-agent-api-url="https://app.aidfolk.com/api"></script>Someone else looks after your site? Send these steps to my web developer emails them the code and the steps.

3. Paste it into your site
WordPress
- In your WordPress dashboard, go to Plugins › Add New Plugin, search for “WPCode”, then install and activate it.
- Go to Code Snippets › Header & Footer and paste your chat's code into the Footer box.
- Click Save Changes. If your site uses a cache plugin, clear its cache.
On WordPress.com, installing plugins needs a paid plan.
Wix
- In your Wix dashboard, open Settings, then Custom Code (under Development & integrations).
- Click + Add Custom Code, paste your chat's code, choose All pages, and place it in Body - end.
- Click Apply.
Wix shows Custom Code once your site is published and has its own domain, which needs a paid Wix plan.
Shopify
- Go to Online Store › Themes, click ⋯ beside your current theme and choose Edit code.
- Open theme.liquid (under Layout) and paste your chat's code on the line just above </body>.
- Click Save.
Shopify suggests duplicating your theme before you edit its code, and a theme update can replace your change: if the chat disappears after one, paste the code again.
Squarespace
- Open the Pages panel, then Custom Code › Code Injection (on older sites, it's under Website Tools).
- Paste your chat's code into the Footer box.
- Click Save.
Code Injection comes with Squarespace's Core plan and above, not Basic.
Webflow
- Open Site settings › Custom code.
- Paste your chat's code into Footer code, then click Save changes.
- Publish your site: the code goes live when you publish.
Custom code needs a paid Webflow site plan or workspace.
Lovable, Bolt or v0
- In Widget & embed, choose Lovable, Bolt or v0 and copy the prompt: it holds your chat's code.
- Open your project, paste the prompt into a new message to its AI and send it.
- Publish your site again.
The prompt asks for the code on every page, just above </body>, exactly as it is. If your builder lets you edit files, you can paste the code into index.html yourself instead.
React, Vue or Angular
- Open the page every route of your app shares: index.html (Vite and Vue), public/index.html (Create React App) or src/index.html (Angular).
- Paste the code on the line just above the closing </body> tag.
- Build and deploy.
The chat loads once and stays as visitors move between your app's pages.
Next.js
- Open your root layout: app/layout.tsx (with the Pages Router, pages/_document.tsx).
- Paste the code as it is, inside <body> after {children} (or after <NextScript />).
- Deploy.
Paste the tag itself rather than loading it with next/script: then it's in your pages' HTML, where Check my site looks for it.
Any other website (HTML)
- Open your site's HTML, or the template every page shares (often a footer or layout file).
- Paste the code on the line just above the closing </body> tag.
- Publish the change.
4. Check my site
Back in Widget & embed, type a page of your website under Check my site. It opens the page and looks for your chat:
- “Your chat is on …”: you're done.
- “…isn't live yet”: go to the agent's Overview and click Go live.
- “Your chat doesn't answer on … yet”: add that website in step 1.
- “We couldn't find your chat's code on that page”: check you saved and published the change. If you added it through a tag manager, open your site and look for the chat bubble instead.
- “… looks built with Wix, but the steps above are for WordPress”: your site was built with another builder than the one you chose. Click Show the Wix steps and follow those. For a builder without its own steps, like Webflow or Framer, it says where that builder takes the code.
Visitors know it's AI
The chat's header always says AI assistant, and each answer the AI writes carries a machine-readable “AI-generated” mark in your page, in line with the EU AI Act's transparency rules (in force since August 2026). Nothing changes in how the chat looks, and there's nothing to set up.
If a visitor asks whether they're talking to a person, the agent says it's an AI assistant, whatever its instructions say, and keeps the name you gave it. On your own AI key, your provider's watermark applies too: Anthropic adds its own, and for OpenAI you turn on Text provenance in your OpenAI account (Settings › Data controls).
Under the message box, a short note says “AI-written answers can be wrong. Confirm anything important with us.” You can write your own words instead, up to 160 characters (a phone number, or where to check prices), or turn the note off, in Widget & embed › Answers. The AI assistant label stays either way.
One agent can answer on several websites: websites and agents. A longer walk-through, from content to launch, is in our guide to adding an AI chatbot to your website.
Still stuck? Email support@aidfolk.com and a person will answer.