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
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
Content-Type
String
application/json
Normal Conversation Request
Normal Conversation Message
Multimodal Conversation Request
Multimodal Conversation Message
Game Control Message
1. Chapter Switch
goal_check_dm
data.game_status.action
2
switch chapter
common_npc
game_status.action_message
string
the new chapter content
2. Game Ending
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
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?