Turn On the Drupal Chat Bot in Four Steps

From the Chat Bot tab to a live chat on every page

The chat bot is not code inside the module: Opensolr runs it, the module takes you straight to it and shows it on your pages. In Drupal, go to Configuration › Search and metadata › Opensolr Search and open the Chat Bot tab.

From the Chat Bot tab of the module to the Chat Bot of your index, your domains, then the switch and Save1Chat Bot tabin Drupal2Chat Bot ofyour index3Your domainsin Embed code4Switch onand Save From the Chat Bot tab of the module to the Chat Bot of your index, your domains, then the switch and Save1. Chat Bot tab2. Chat Bot of your index3. Your domains4. Switch on, Save
The module opens the Chat Bot of the index it is connected to, and shows it on every page while the switch is on. The chat answers from that index.

The four steps

  1. On the Chat Bot tab, click Open the Chat Bot of your index. It opens the Chat Bot of your index in the Opensolr Control Panel (sign in if asked).
  2. On the Embed code tab there, write the domain of your site under Domains of your site, one per line, like example.com. Its www. form is included.
  3. Switch on Show the chat on the hosted search page and on your Drupal or WordPress site.
  4. Click Save settings.

That is all: the chat button shows on every page of your site, the admin pages excepted, and on the hosted search page of your index. Your site picks up the switch when you open the Chat Bot tab again, or at its next cron run. Switch it off and save, and the chat goes away the same way.

The chat opens only on the domains you listed, so a copy of it on another site shows nothing and does not use your plan.

Only on some pages

Leave the switch off and add the embed code shown on the same tab to the pages where you want the chat. It is one line:

<script src="https://opensolr.com/chatbot/YOUR_CHAT_ID/widget.js" defer></script>

More about the embed code, and what to add if your site sends a Content-Security-Policy: Put the chat on your site.

If the tab asks you to connect an index

The Chat Bot tab needs the module connected to your Opensolr Index first: Connect your Opensolr account. Then fill the index with your content, with the Data Crawler or Data Ingestion, so the chat has something to answer from.

Chat Bot pages