1. Frase Answers Help Center
  2. Launch Your First Chatbot

Add the Chatbot to Your Website

Here's how to install the code snippet on your site so your chatbot can begin interacting with visitors.

In this article

  1. Get the installation code
  2. Add the script to your website
  3. Set the targeting URL

Get the installation code

📖 Installing a script on your site allows the chatbot to render on your pages.

  1. In the lower left corner, navigate to the Settings tab

  2. Click on Install

  3. Copy the install script provided

Add the script to your website

  1. Open your website’s code editor or content management system (CMS)
  2. Paste the script into the <head> section of your site’s HTML
  3. Save and publish your changes

💡 Ensure the script is present on every page you want the chatbot to appear.

Installing the script on WordPress

⚠️ Skip to the next section if you're not using WordPress.

Option 1: Use a Header/Footer plugin (Recommended for non-developers)

This method is easy, safe, and doesn’t require editing theme files.

  1. In your WordPress dashboard, go to Plugins > Add New
  2. Search for a plugin like “Insert Headers and Footers” or “Header Footer Code Manager”
  3. Install and activate the plugin
  4. Once installed, navigate to the plugin’s settings (usually under Settings > Insert Headers and Footers)
  5. Paste the chatbot script into the Header section
  6. Click Save

Option 2: Add script directly to your theme (Advanced)

⚠️ We only recommend this method if you're comfortable editing theme files. A mistake here can break your site.

  1. Go to Appearance > Theme File Editor
  2. In the right-hand sidebar, click on header.php
  3. Find the </head> tag in the code
  4. Paste your chatbot script just above that closing tag
  5. Click Update File to save changes

Set the Targeting URL

  1. Go back to your dashboard and click on the Bots tab
  2. Open the bot you want to display
  3. Navigate to the Targeting tab
  4. Paste in the URL of your website (or specific page)
  5. Click Save

You’re All Set!

Once the script is installed and the targeting URL is added, your chatbot should appear on your site. You can test it by refreshing your page.