Initial concepts
So, what we can do with the Platform?
How do I know if my company needs a chatbot?
Register and login
First Steps - Creating your project
Choose your plan
Profile
Permissions system
Project Dashboard
Platform's Glossary
2-Factor Authentication
Invalid authentication code
General settings
Artificial Intelligence
Zero Shot Learning
WeniGPT
What is the Weni Platform's AI Module?
Overview
What is an Intelligence?
Intents and Entities
Hands-on
Creating an Intelligence
Training your Intelligence
Intelligence Force
Tests
Inbox
Translating your dataset
Share your AI with translators
Requesting authorization
Versions
Settings
Integration
Integrate an intelligence to your project in the Weni Platform
Introducing the Content Intelligence
Integrating a Content Intelligence
Updates
Glossary
Guidelines and Good practices
Flows
Expressions and Variables Introduction
Variables Glossary
Expressions Glossary
Flows Creation
Flows introduction
Flow editor and tools
Action cards
Decision cards
Adding Media to the message
Call Webhook: Making requests to external services
Split by Intent: Using Classifiers
Import and export flows
Using expressions to capture the user's location
Viewing reports on the platform
Route markers
Studio
Contacts and Messages
Groups
Messages
Triggers and Campaigns
Adding a trigger
Triggers Types
Tell a flow to ignore triggers and keywords
Campaign introduction
How to create a Campaign
Editing events
Creating contact from an external Webhook
Contact history
How to download, extract, transform and combine archived data from Weni Flows
Channels
Settings
Channels Introduction
Adding a Facebook Channel (RapidPro)
Adding a Viber channel
How a SMS Integration Works
General API concepts and Integrations
How to create a channel on twitter
How to create a channel on Instagram
Main steps to active Whatsapp for UNICEF
Adding Discord as a channel
Creating a Slack Channel
Adding a Viber channel (RapidPro)
Creating a Microsoft Teams channel
Weni Integrations
How to use the integrations module
Adding a Web channel
Adding a Telegram channel
How to create a channel with whatsApp demo
Whatsapp: Weni Express Integration
How to create template Messages: Whatsapp
Creating a Microsoft Teams Channel
Whatsapp Business API
Integrations
Human Attendance
Weni Chats: Introduction to the Chats module
Weni Chats: Setting Up Human Attendance
Weni Chats: Human Service Dashboard
Weni Chats: Human Service Management
Weni Chats: Attendance distribution rule
Weni Chats: Using active triggering of flows
Weni Chats: CoPilot
Ticketer: Ticketer on Rapid Pro
Ticketer: How to integrate Rocket.Chat as a ticket service on the Weni Plataform
How to send message templates through RocketChat
RocketChat call routing
RCAdmin API: Agent-Activity
U-Partners - Proper use of features
Using groups to organize human attendance
Data and BI
How to Install and Use the Weni Data Connector for Power BI
Incremental Update - Power BI
Explore Weni's Database Documentation
Tips for Data Modeling in Power BI
Filter using Contact Fields in Power BI
UX Writing
- All Categories
- Artificial Intelligence
- Integrating a Content Intelligence
Integrating a Content Intelligence
Integrating a content intelligence is done in just a few steps. In this guide, we'll explain what's needed.
Accessing the necessary information
Before making the flow, separate the information that will be used:
- On Weni Platform, access the content intelligence you want to integrate, in the Artificial Intelligence module;
- Then go to the API page, located on the left sidebar:
- From the drop-down box, select the Knowledge Base you want to integrate.
- When selecting the Knowledge Base, its information will be loaded in the area belowThe URL is the link to the API related to this type of intelligence. The Access Token is the code needed to authenticate your user and the POST body Informs the Knowledge Base code, the question to ask (variables can be used here) and the Knowledge Base language.
- Finally, the API page also has a mini-guide for integration and an API return example:
How to integrate intelligence to Weni Fluxos or Rapidpro
In Weni Fluxos or Rapidpro, follow the steps below:
- Create a flow, or open the flow in which you will integrate
- Add a Wait for Response card. This card will receive the question asked by whoever uses your chatbot. To facilitate identification, name the result a question, or another term that identifies that it will store a question:
- Then add the flow card Call a webhook
- When the card opens, select the POST in the method selector and paste the z entered into the URL field:
- Click the HTTP Headers button and enter the Access Token:
- Click the POST Body button and enter the POST Body information. In question, include the variable that contains the result. In this example the variable is called "question", so we enter "@results.question":Tip: Learn more about flow variables in this article.
Handling the responses received
After configuring the Call Webhook card, the information received by the flow can be processed and used. Here is an example of usage.
Once the Call Webhook card runs, you can use the response values by inserting these formulas into your flow:
- @(results.result.extra.answers.0.text) - The answer that has the most confidence
- @(results.result.extra.answers.0.confidence) - The confidence of the first returned response
- @(results.result.extra.answers.1.text) - The answer that has the second highest confidence
- @(results.result.extra.answers.1.confidence) - The confidence of the second response returned
- @(results.result.extra.answers.2.text) - The answer that has the third highest confidece
- @(results.result.extra.answers.2.confidence) - The confidence of the third response returned