Skip to main content

Implementing an AI customer support agent in Drupal using Voiceflow

In today’s digital era, seamless user interaction is essential for any website’s success. Integrating an AI chatbot can significantly improve the user experience by offering 24/7 support, instant responses, and easy navigation. If you’re looking for a powerful and efficient solution, Voiceflow for Drupal is a great choice.

Voiceflow demo

In this article, we’ll explore what Voiceflow is and its key benefits, followed by a detailed look at the Voiceflow module for Drupal and how to implement it effectively. By the end, you’ll have a complete guide to maximizing Voiceflow’s functionality on your Drupal site, ensuring a smoother and more interactive user journey.

What is Voiceflow?

Voiceflow is a powerful AI chatbot platform designed to create intelligent virtual assistants with ease. It allows businesses to build custom AI customer support agents without requiring coding skills, making it an ideal solution for teams looking for speed, control, and flexibility.

With Voiceflow, you can design and manage complex conversation flows, and train AI agents using your own data. Additionally, the platform offers a marketplace with plugins to extend functionality and a community on Discord for support and tutorials.

Now that we understand what Voiceflow is and its key benefits, let’s explore how to integrate it into a Drupal site to enhance user experience and automation.

How to implement Voiceflow in Drupal?

To integrate the Voiceflow AI chatbot into Drupal, we developed the Voiceflow module, providing a more advanced and flexible solution than the basic JavaScript injection offered by the Voiceflow API.

With this module, you can enable or disable the chatbot as needed and exclude specific paths, giving you complete control over its behavior

To configure the Voiceflow module, just navigate to "Configuration > System > Voiceflow Settings" (/admin/config/system/voiceflow) and follow these three simple steps:

  1. Enable or disable the chatbot at any time from the module settings.
  2. Add your Project ID from Voiceflow to connect your AI assistant.
  3. Define exclusion paths to control where the chatbot appears, using tokens for advanced customization.
Voiceflow settings

Once configured, your Voiceflow chatbot will be fully functional on your Drupal website, providing users with AI-based assistance.

But that’s not all! To give you even greater flexibility over how the Voiceflow AI chatbot interacts with your Drupal website, we’ve developed a complementary submodule, Voiceflow Index.

This tool allows you to select which content is indexed and used by the chatbot, so you can highlight key information or exclude specific content that the AI assistant shouldn’t handle. With this added layer of control, your Voiceflow chatbot will deliver more accurate, relevant, and optimized responses based on your content strategy.

Advanced content control with Voiceflow Index

The Voiceflow Index submodule extends the functionality of the Voiceflow module by allowing specific content to be indexed for use by the Voiceflow chatbot.

It enables you to select specific content types, generating a complete index with the chosen content, which will later be used in the chatbot's conversation flow.

Let’s show you how to use it…

How to use the Voiceflow Index submodule

To use the module, go to "Configuration > System > Voiceflow > Voiceflow Index" (/admin/config/system/voiceflow/index) and configure it as follows:

First, select the content types where you want to add the "Voiceflow Index" field. This field allows you to decide whether each piece of content should be indexed or excluded.

Voiceflow index settings

Next, for the selected content types, a Voiceflow tab will appear in the sidebar. Simply check the box to add the content to the Voiceflow index and make it available to the chatbot in the generated index, which we will see later.

Voiceflow index tab

Finally, by visiting /voiceflow.xml, you will see a complete index of the content you've marked. This index is used by the Voiceflow platform to define which routes the AI chatbot should process.

Voiceflow Index

Conclusion

Integrating Voiceflow into Drupal enhances the user experience with AI-powered chatbots. The Voiceflow module ensures seamless chatbot integration, while the Voiceflow Index submodule provides full control over the content to be indexed.

With these tools, your Drupal site gains smarter automation, optimized responses and improved interaction. Now, you’re ready to unlock the full potential of Voiceflow in Drupal!

Alberto Ortega

Alberto Ortega

Drupal developer

Training courses

Face-to-face and online training for development and product teams.