Introduction
Gather using AI is a powerful functionality that allows you to efficiently collect specific information from call participants. By leveraging AI, this feature can gather details such as names, addresses, or other relevant information based on a list you provided. The collected data is then sent back in a structured format. This new AI-driven feature offers a much easier user experience compared to the previous gather functionality, simplifying the process and reducing the time needed to collect information. This guide will walk you through the process of using the ‘Gather Using AI’ feature effectively.Prerequisites
The feature can be used for Voice API or TeXML calls similar to regular gather functionality. Please follow the user guides to set up your environment:Voice API
Gather using AI can be enabled for any call by sending the following curl request:parameters section contains all the data that you want to gather during the call. Please use the json schema to define them.
The required section specifies when the gather process should end. A webhook will be sent when all values from this list are gathered. If no values are provided, the process will end as soon as the first value is retrieved.
Message history
It is possible to provide the history of the conversation in themessage_history section, allowing the bot to continue the conversation without losing context
TeXML
In the similar, the gather using AI can be enabled from TeXML. There is a dedicated verb<AIGather> that can be used for that purpose: