Skip to content

Create Conversation

Create Conversation

The create_conversation() function initiates a new conversation with a specified agent in Blipper. This function takes the agent ID as a parameter and returns a conversation ID, allowing you to interact with the agent within the context of a conversation.

1
2
3
4
5
from blipper import Blipper

blip_obj = Blipper(blipper_api_key="lqqRYOOnSerIOP973hjskR", model="galileo", verbose=False)

conversation_id: str = blip_obj.create_conversation(agent_id="my_agent_id")

The conversation_id variable will contain a string representing the ID of the newly created conversation. You can use this ID for various purposes such as:

Session Management: Store the conversation ID to maintain a session with the user. This allows you to track and continue the conversation across multiple interactions.

Access Conversation History: You can use the conversation ID to retrieve the conversation history later on. This enables you to review past interactions, analyze user queries, and improve agent performance.

In the next section, we'll explore how to access the Conversation History using the conversation ID.