Chat with NPCs & Check Goal with SSE

SSE Chat (Single Chat & Group Chat, Memory Share)

To chat with different characters, the client need to start a SSE call to receive msg.

POSThttps://api.rpggo.ai/v2/open/game/chatsse

Request Body

Name
Type
Description

game_id

String

the unique id of the game

session_id

String

the unique id of the game session

character_id

String

the unique id of the character

message_id

String

any unique id to identify the msg

message

String

the message content

advance_config

dictionary

config to enable the image, voice output.

Header

Name
Type
Description

Authorization

String

Bearer Token Apply Your Test Key

Content-Type

String

application/json

Normal Conversation Request

Normal Conversation Message

Multimodal Conversation Request

Multimodal Conversation Message

Game Control Message

1. Chapter Switch

character_type
message field
value
command note

goal_check_dm

data.game_status.action

2

switch chapter

common_npc

game_status.action_message

string

the new chapter content

2. Game Ending

character_type
message field
value
command note

goal_check_dm

data.game_status.action

3

Game is ending

common_npc

game_status.action_message

string

The ending summary

3. Failed to pass game

character_type
message field
value
command note

goal_check_dm

data.game_status.action

4

Fail the goal

common_npc

goal.chapter_tip.closing_statement

string

The ending summary of failure

4. Other error messages

Last updated

Was this helpful?