Back to home

Install the website widget

Need to create your chatbot first? Follow the document chatbot setup guide.

Get your website code

  1. In Folio, select at least one ready document for your visitor chatbot.
  2. Open Visitor chatbot → Website and save the address visitors see in their browser. Include www if your site uses it.
  3. Choose how your site is built and copy the code for your own chatbot. You can also copy instructions to send to your web editor.

Add the code to your site

Other website or I’m not sure
  1. Open your site editor and look for custom code, footer scripts, or code injection.
  2. Paste the code once in the site-wide footer scripts area. In a custom site, add it before the closing body tag in the shared layout.
  3. Save and publish your changes.
Wix
  1. In the Wix dashboard, go to Settings → Custom Code.
  2. Choose Add Custom Code, paste the code, and name it Folio chat.
  3. Choose All pages and Body – end, then click Apply. Open your published site on its connected domain.
Open Wix documentation
WordPress
  1. From your WordPress dashboard, install and activate WPCode if your site supports plugins.
  2. Go to Code Snippets → Header & Footer and paste the code into Footer.
  3. Save changes. If you use a site cache, clear it before checking the live page.

On WordPress.com, this requires a plan that supports plugins.

Open WordPress documentation
Squarespace
  1. Open Code Injection in your Squarespace dashboard.
  2. Paste the code in the Footer field and click Save.
  3. Open the published site to check the chat button.

Code Injection requires a plan that includes it.

Open Squarespace documentation
Webflow
  1. Open Site settings → Custom code.
  2. Paste the code into Footer code and save.
  3. Publish to the domain you added in Folio.

Custom code requires a Webflow plan that supports it.

Open Webflow documentation
Shopify
  1. Go to Online Store → Themes. Duplicate your theme before editing.
  2. Open Edit code on the duplicate. In layout/theme.liquid, paste the code just before the closing body tag.
  3. Save and publish the updated theme. Check the live storefront.

This adds chat to your storefront pages. Shopify checkout is configured separately.

Open Shopify documentation
HTML, CSS, and JavaScript
  1. Open your HTML file or the layout shared by your pages.
  2. Paste the code once just before </body>.
  3. Publish the updated site.
React (Vite or Create React App)
  1. Open the HTML entry file. In Vite this is usually index.html. In Create React App it is public/index.html.
  2. Paste the code once just before </body> in that HTML file.
  3. Build and deploy the React site.
Next.js (App Router)
  1. Open app/layout.tsx or app/layout.jsx. Add the import with your other imports.
  2. Place the Script component inside the root layout’s body, after the page content.
  3. Build and deploy the site.
Open Next.js (App Router) documentation
Next.js (Pages Router)
  1. Open pages/_app.tsx or pages/_app.jsx. Add the import with your other imports.
  2. Render the Script component next to the page component in the shared app layout.
  3. Build and deploy the site.
Open Next.js (Pages Router) documentation

Check the live site

After publishing, open your website and look for the chat button in the bottom-right corner. Send a test question. If the button is missing, check that the widget is enabled in Folio and that the saved address matches the live site.