API V2 (New)
Fetch Game, Set Control, Integrate Characters, Chat in SSE, Manage User Goal Check with AI Released on May 11, 2024.
Last updated
Was this helpful?
Fetch Game, Set Control, Integrate Characters, Chat in SSE, Manage User Goal Check with AI Released on May 11, 2024.
Last updated
Was this helpful?
If you've read Understand the data schema already, in V2 API, we renamed "Scene" to "Chapter", and "NPC" to "Character".
Get Game Data
Start Game
Switch Chapters
Continue Sessions (Game progress memory)
Chat with NPCs in SSE (single chat, group chat)
Normal NPC Conversations
Game Control Messages AI Powered Goal Check
Async via SSE: V1 provides synced api call only. But V2, we turn to async msg push, which means all the generation will be pushed to client via SSE.
V2 support image, audio, music generation in real-time.
Currently its a whitelist logic under gameid, request for multi-modal game experience by sending us your GameId, dev@rpggo.ai
Sample game for Multi-modal output https://rpggo.ai/game/25e19be0-2b17-47e9-9891-d12a7131506b#/game?gameId=25e19be0-2b17-47e9-9891-d12a7131506b
You can only access permission-granted games.
Let us know if you are interested in any GameId or a GameId list. send request to dev@rpggo.ai
Here is an example of node.js to play with our V2 API. Simple Chat Game with V2 API