Voiceflow Extensions
Integrate Voiceflow extensions into ChatDash
Overview
ChatDash now supports Voiceflow extensions, allowing you to enhance your chatbot’s functionality by integrating custom extensions developed in Voiceflow. This integration enables you to create richer and more interactive experiences for your users without the need to manage additional data sources or complexity.
What are Voiceflow Extensions?
Voiceflow extensions are custom functionalities that can be added to your Voiceflow projects to extend their capabilities. They enable you to create interactive components like forms, maps, videos, timers, and more within your chat or voice applications.
According to the Voiceflow documentation, there are two types of extensions:
- Response Extensions: These extensions render custom components in the chat interface, allowing for richer user interactions.
- Effect Extensions: These extensions execute side effects or actions, such as modifying the chat UI or triggering events, without directly rendering content in the chat window.
Benefits of Using Voiceflow Extensions in ChatDash
- Enhanced Functionality: Add custom interactive components to your chatbots.
- Seamless Integration: Easily integrate extensions without additional storage or data management.
- Customizable: Build your own custom extensions to fit your specific use cases and requirements.
- Time Savings: Reduce development time by leveraging pre-built extensions.
How to Use Voiceflow Extensions in ChatDash
Step 1: Initialize the Chat Widget with Extensions
When embedding the ChatDash widget into your webpage, include the extensions
parameter directly in the chat widget configuration, similar to how it’s done in Voiceflow’s documentation.
Example:
Replace "YOUR_PROJECT_ID"
with your actual project ID. By including the extensions
array directly in the ChatWidgetConfig
, you can manage your extensions without needing to include external scripts.
Step 2: Build Your Own Custom Extensions
You can build your own custom extensions to tailor the chatbot experience to your specific needs. ChatDash provides a helper function createExtensionComponent
to simplify the creation of custom response extensions.
Using createExtensionComponent
The createExtensionComponent
function helps you create a React component for your custom extension.
Function Definition:
This function simplifies the process of creating a React component that handles the rendering and lifecycle of your custom extension.
Usage Example:
Pre-Built Extensions
ChatDash supports a variety of pre-built extensions, including but not limited to:
- Disable Input (Effect Extension)
- Forms (Response Extension)
- Maps (Response Extension)
- Videos (Response Extension)
- Timers (Response Extension)
- Confetti (Effect Extension)
- Feedback (Response Extension)
- File Upload (Response Extension)
- Knowledge Base Upload (Response Extension)
- Date Picker (Response Extension)
- Placeholder Text (Effect Extension)
Extension Examples
Response Extensions
Form Extension
The Form extension allows you to collect user input through a custom form.
Usage:
Send a message with type
set to 'ext_form'
to display a form asking for the user’s name, email, and phone number.
Code Example:
Map Extension
The Map extension embeds a Google Map with directions.
Usage:
Send a message with type
set to 'ext_map'
and include apiKey
, origin
, and destination
in the payload.
Code Example:
Feedback Extension
The Feedback extension allows users to provide feedback on the chatbot’s response.
Usage:
Send a message with type
set to 'ext_feedback'
to prompt the user for feedback.
Code Example:
Effect Extensions
Confetti Extension
The Confetti extension triggers a confetti animation on the page.
Usage:
Send a message with type
set to 'ext_confetti'
to display confetti.
Code Example:
Placeholder Extension
The Placeholder extension allows you to modify the placeholder text of the chat input field.
Usage:
Send a message with type
set to 'ext_placeholder'
and include the desired placeholder text in the payload.
Code Example:
Embed Code Example
Below is an example of how to embed the ChatDash widget with Voiceflow extensions into your webpage:
Replace "YOUR_PROJECT_ID"
with your actual project ID. Include your custom extensions directly in the extensions
array within the ChatWidgetConfig
object.
Conclusion
By integrating Voiceflow extensions into ChatDash, you can significantly enhance the capabilities of your chatbot, providing users with a more interactive and engaging experience. You can use the provided extensions or build your own custom extensions to fit your unique requirements.
For more information on creating custom extensions, refer to the Voiceflow Custom Web Chat Widgets documentation.
For further assistance or questions, please contact our support team.