Integrate GenerativeAgent Overview
Integrating into GenerativeAgent requires you to hook GenerativeAgent into your voice or chat system. This enabled GenerativeAgent to talk to your users.
An end-to-end integration of GenerativeAgent can be represented by these key components:
- Connecting your data sources and APIs.
- Feed your knowledge base into ASAPP, and connect your APIs. GenerativeAgent will use them to help users and perform actions.
- Listening and Handling GenerativeAgents. Create a single SSE stream where events from all conversations are sent.
- Events are how GenerativeAgent’s response is sent, as well as other key status information.
- Send your audio or text conversation data to ASAPP and have GenerativeAgent analyze the conversation.
Passing the conversation data, analyzing with GenerativeAgent, then handling events functions as a loop until the conversation completes or the conversation needs to be escalated to an agent.
The below diagram shows how these components work together, and the general order in which they execute during a conversation:
- Create an SSE stream and handle the GenerativeAgents events sent via the stream. GenerativeAgent’s reply is sent via this event stream. You need to provide the bot’s response back to your user.
- Send your audio to AutoTranscribe. Use one of our Connectors to streamline this integration. Otherwise, you can use our websocket integration to pass raw audio.
- Pass the conversation transcript into ASAPP. This is the transcript you receive from AutoTranscribe or the direct text of a conversation if a chat channel like SMS.
- Engage GenerativeAgent on the conversation with the /analyze call. GenerativeAgent will look into ASAPP’s conversation data to account for the entire conversation context.
You need to configure GenerativeAgent in order for it to connect to your Knowledge Base and APIs.
Connectors
We support out-of-the-box connectors to enable GenerativeAgent on contact center platforms:
MRCP
Coming soon:
- Amazon Connect
- Genesys Cloud
If your contact center platform is not listed here, please reach out to inquire about support options.
Direct API
We also support direct integration into GenerativeAgent:
Audio via AutoTranscribe
Text Only
Examples
We have various examples of interactions between a user and GenerativeAgent to show what API calls to make, and what events you would receive.
Each integration method has it’s own uniqueness, but these examples should still generally apply.
Next Steps
With a functioning GenerativeAgent integration, you are ready to call GenerativeAgent and receive analyzed replies.
You may find one of the following sections helpful in advancing your integration:
Was this page helpful?