create_room

Creating a room with multiple characters

client.chat.rate('CHAR', RATE)
from characterai import PyCAI

client = PyCAI('TOKEN')

characters = [
    {'value': 'CHAR'},
    {'value': 'CHAR'}
]

chat = client.chat.create_room(
    characters, 'NAME'
)

print(chat)

name [str]

Examples: Lincoln-Einstein, Music Lovers, Sci-Fi discuss

characters [str]

Please enter the names or ids of the characters you want to add to this room. Note: Only the top 5000 public characters are available for now

topic [str]

What should happen in this room. Characters will try to follow it. Examples: Play by play superhero battle, Discuss the latest episode of Game of Thrones

token [str] (optional)

You can set a specific token for the function, it will be executed from the specified token

Last updated