Create Conversation

Installation

chevron-rightPrerequisiteshashtag

This example specifically requires completion of GLChat SDK installation & API Key steps listed on the Quickstart page.

githubView full project code on GitHub

Create Conversation using GLChat SDK

You can create conversation programmatically using GLChat SDK.

from pathlib import Path
from glchat_sdk import GLChat

client = GLChat()

conversation = client.conversation.create(
    user_id="your-user-id",
    chatbot_id="your-chatbot-id",
    title="My First Conversation"
)

print(f"Created conversation: {conversation}")

Sample Response

This is a sample of the response:

Last updated