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.
POST
https://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
Sample Curl
Normal Conversation Message
Game Control Message
character_type
message field
value
command note
goal_check_dm
data.game_status.action
2
switch chapter
goal_check_dm
game_status.action_message
any string
the new chapter content
character_type
message field
value
command note
goal_check_dm
data.game_status.action
3
Game is ending
goal_check_dm
game_status.action_message
any string
The ending summary
Last updated