How It Works
Unlike the main content generation flow which is asynchronous and uses webhooks, the Suggestions endpoint is synchronous. You send the conversation history and profile information, and you receive the suggestions immediately in the response.Modes
The suggestions generation can operate in two different modes depending on the conversation history:- Icebreaker: Triggered when the conversation history is empty. It helps the User start a new conversation with the Persona.
- Follow-Up: Triggered when there are already messages in the history. It helps the User continue an ongoing discussion.
Usage
To generate suggestions, you need to provide:- The User Profile: The profile of the User who will receive the suggestions.
- The Persona Profile: The profile of the Persona the User is interacting with.
- The Conversation History: The list of recent messages in the conversation.
- The Language: The language in which the suggestions should be generated.
Example Request (Follow-Up Mode)
Example Response
The API returns an array of three suggestions for the User to send next.For a complete list of parameters and data structures, please refer to the Suggestions API Reference.