Reference
Conversations

Conversations

The conversation API allows you start a conversation and to get an existing conversation created by the SKD with its ID.

Create Conversation

You can create a conversation by calling the proteus.conversations.create({ characterId })

  const newConversation = await proteus.conversations.create({ characterId: 'characterId' });
  console.log('conversation id', newConversation.id);

You can also pass in a String representing the character ID.

  const newConversation = await proteus.conversations.create('characterId');
  console.log('conversation id', newConversation.id);

First, you'll need to get the ID of the trained character you'd like to start a conversation with. This can be done on the ProteusAI app. Click on a character and then click the blue info icon next to the character's name.

character id

Get Conversation

  const conversation = await proteus.conversations.getById('conversationId');
  console.log(conversation);

© 2024 ProteusAI. All rights reserved