DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • Traditional Testing and RAGAS: A Hybrid Strategy for Evaluating AI Chatbots
  • Leveraging Natural Language Processing for Enhancing Sales Chatbots
  • Drupal as a Headless CMS for Static Sites
  • Build a Multilingual Chatbot With FastAPI and Google Cloud Translation

Trending

  • How to Merge HTML Documents in Java
  • What’s Got Me Interested in OpenTelemetry—And Pursuing Certification
  • Monoliths, REST, and Spring Boot Sidecars: A Real Modernization Playbook
  • Simpler Data Transfer Objects With Java Records
  1. DZone
  2. Coding
  3. Frameworks
  4. How To Add a Chatbot to Your Drupal Website

How To Add a Chatbot to Your Drupal Website

In this post, we are going to see how you can add a chatbot plugin to your Drupal websites. Drupal is a free and open-source web content management framework.

By 
Devashish Mamgain user avatar
Devashish Mamgain
·
Aug. 11, 23 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
3.8K Views

Join the DZone community and get the full member experience.

Join For Free

In this post, we are going to see how you can add a chatbot plugin to your Drupal websites.

Drupal is a free and open-source web content management framework. Drupal is released under the GNU Public license. Some of the most popular websites, such as Harvard, BBC News, Red Cross, and Twitter, are built on Drupal. Let us now take a look at how to add a chatbot to your Drupal website.

Prerequisites

You should have a Drupal Admin account, and you’ll need Kommunicate’s chatbot plugin to add the chatbot to your Drupal website.

Step 1: Log in to Your Drupal Admin Console

  • The Drupal Administrator interface can be opened by appending the path where you have installed it to the URL of your Website or the Server IP.

For example, http://example.com/drupal/ Or http://67.207.87.1/drupal/Drupal Administrator

Step 2: Block Layout

Click on the “Structure” menu at the top and then select the “Block Layout” option.

Structure

Step 3: Footer Bottom — Place Block Section

  • In the block layout section, you have to configure what block content appears in your site’s sidebars and other regions.

Navigate to the “Footer bottom” block and click on the “Place block” button.Navigate to the “Footer bottom” block and click on the “Place block” button.

Step 4: Adding the New Custom Block

  • Now a box will be shown with all the block options where it needs to be placed.
  • Click on the “Add custom block” button.

Click on the “Add custom block” button.

Step 5: Adding the Chatbot Script

  • The “Add custom block” page will appear — provide a title to the “Block description”

In the ‘Body’ section, click Source and paste your Kommunicate chatbot code snippet, then select the ‘Text format’ as `Full HTML` and save the custom block.In the ‘Body’ section, click Source and paste your Kommunicate chatbot code snippet, then select the ‘Text format’ as `Full HTML` and save the custom block.

Step 6: Go to the Bot Integrations Section

First, you need to login into your Kommunicate dashboard. 

Navigate to the ‘Bot Integration‘ under the “Bot Integrations” section and click “Create a bot with Kompose(Chatbot Builder).”

In the ‘Bot profile’ page, Set up your Bot by providing Bot Name and Language, then ‘Save and proceed”.

Once saved, it will be navigating to the next page ‘Human handoff,’ enable or disable the “Automatic bot to human handoff:” setting, and click the ‘Finish bot setup’ button.

Step 7: Go to the Kompose Section

After the bot setup is done, go to the Kompose section in the Bot Integration section. Select your bot from the ‘Select bot’ dropdown list.

go to the Kompose section

Step 8: Create a Welcome Message for Your Chatbot

The welcome message is the first message that the chatbot sends to the user who initiates a chat. The welcome messages create the first impression, but they also maintain customer engagement and make them feel valued.

An efficient bot greeting message also decides the conversational flow with visitors and gives a chance to explore the company’s products & features.

You can set an interactive greeting message using the Kompose builder with the help of Texts, Buttons, Images, or any other rich media type.

  • Click the “Welcome Message” section in the “Enter Welcome message — Bot’s Message” box, provide the message your chatbot should be shown to the users when they open the chat, and then save the welcome intent.
  • In the below example, we have added the welcome message using text and buttons. Added the text message “Hey there, thanks for checking our Kommunicate” and “5 buttons –— Just Browsing, Book a Demo, I have a question, Talk to Human, Give me a product tour”. So when a user opens the chat widget, the buttons will be shown along with the text to the user.

Step 9: Create Answers for Your Chatbot

Once the welcome message creation is completed, the next step is to create answers for your chatbot.

The answers section is where you’ve to add all the user’s messages and the chatbot responses.

  • In the “Answer” section, click +Add, then give an ‘Intent name’

In the Configure user’s message section — you need to mention the phrases that you expect from the users that will trigger. Note that, Kompose runs on powerful NLP, so the bot will be able to match intents for similar phrases as well. But as you know — the more the data — the better the accuracy. So make sure you add more phrases to fine-tune the bot.

In the Configure bot’s reply section — you need to mention the responses (Text or as Rich messages) the chatbot will deliver to the users for the particular user’s message. You can add any number of answers and follow-up responses for the chatbot.

In the above welcome message example, we’ve added buttons ‘Book a Demo‘ and ‘Give me a product tour.’ So for these two buttons, we have added the same user message and answers as a text message to the bot reply section.

In the same way, you have to click +Add and add your possible user messages (training phrases) and the corresponding bot responses.

Kompse

Step 10: Test Your Chatbot

Once you have completed the welcome message and answers setup, the final step is to test your chatbot.

  • Below the chatbot preview section, click the Test chatbot button.

Test chatbot

  • Click the buttons — Book a Demo, Give me a product tour (or type Book a Demo, Give me a product tour) that we created in the previous step. It will show that particular answer as a chatbot response to the user.

That’s it. Your chatbot is ready to get to work.

Step 11: For Getting the Kommunicate Chatbot Script

After creating the chatbot, the next step is to connect the chatbot to your website. You will get a short piece of Javascript code from the dashboard.

  • Navigate to Dashboard → Settings. Click on the Install section and click the Web tab and copy the JavaScript code.Install

Step 12: Selecting the Block Display Position

  • Once the chatbot block has been saved, it will be forwarded to a page to select the content types, pages, and roles the chat widget should be shown.
  • Check the ‘Content types’ boxes for Article and Basic page
  • Select the ‘Region’ at the Footer bottom where the block should be displayed, and then Save the block.

Step 13: Viewing and Testing the Chatbot Block

  • Once the chatbot block is saved, you would be able to view it under the ‘Footer first’ section.

Once the chatbot block is saved, you would be able to view it under the ‘Footer first’ section.

That’s it. Now, you will be able to view your Drupal website and test the Kommunicate chatbot widget.Now, you will be able to view your Drupal website and test the Kommunicate chatbot widget.

Chatbot Drupal

Opinions expressed by DZone contributors are their own.

Related

  • Traditional Testing and RAGAS: A Hybrid Strategy for Evaluating AI Chatbots
  • Leveraging Natural Language Processing for Enhancing Sales Chatbots
  • Drupal as a Headless CMS for Static Sites
  • Build a Multilingual Chatbot With FastAPI and Google Cloud Translation

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!