Customer support
Session Memory Chatbot
Runs a real-time chatbot that remembers earlier messages in the same conversation and returns structured, UI-ready replies.
How the data flows
Requests move between your backend and the AI workflows automatically. Here's the exact path a request takes.
AI workflow
mr_chatbot_workflow
Produces structured real-time replies while remembering the current conversation
Backend event
webhook_received
What you get
Every template is built from two kinds of pieces: Workflows and Response Formats.
Workflow
mr_chatbot_workflow
Produces structured real-time replies while remembering the current conversation
Response format
chatbot_response
A structured chatbot reply with conversation insights and follow-up actions
Details
The full specification of each workflow, with plain-English explanations. Everything below is set in the downloaded file and can be changed after import.
mr_chatbot_workflow
Produces structured real-time replies while remembering the current conversation
The primary model plus automatic fallback models if the primary is unavailable.
The structured JSON this workflow returns. Fields are defined by you and enforced by ModelRiver.
Fields you include in each request so the workflow can personalise its answer.
Remembers earlier turns when your app sends the returned session_id. Request-body logging must be enabled for the project.
Steps that run automatically around this workflow, in order.
Runs live against your connected AI provider.
How to use it
- 1
Download the template
The file is a portable JSON bundle - safe to share and easy to read.
- 2
Open a project in ModelRiver
Sign in, pick a project, and make sure the AI providers used by this template are connected. You can connect them from the Providers section.
- 3
Import it
Open the Import button in your project, paste or upload the file, review the preview, and confirm. Everything is created atomically, so nothing is overwritten. How import & export works
Template file
Technical users can inspect the raw bundle below.
View full template JSON
{
"version": 1,
"structures": [
{
"name": "chatbot_response",
"description": "A structured chatbot reply with conversation insights and follow-up actions",
"example": {
"reply": "Your name is Vishal, you own Sunrise Bakes, and your business is in Bangalore.",
"summary": "Recalled the user's name, business, and city from this conversation.",
"sentiment": "neutral",
"confidence": "high",
"topics": [
"personal profile",
"business details"
],
"action_items": []
},
"schema": {
"type": "object",
"properties": {
"reply": {
"type": "string"
},
"summary": {
"type": "string"
},
"sentiment": {
"type": "string",
"enum": [
"positive",
"neutral",
"negative",
"mixed"
]
},
"confidence": {
"type": "string",
"enum": [
"high",
"medium",
"low"
]
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"action_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"task": {
"type": "string"
},
"priority": {
"type": "string",
"enum": [
"high",
"medium",
"low"
]
}
},
"required": [
"task",
"priority"
],
"additionalProperties": false
}
}
},
"required": [
"reply",
"summary",
"sentiment",
"confidence",
"topics",
"action_items"
],
"additionalProperties": false
}
}
],
"workflows": [
{
"name": "mr_chatbot_workflow",
"description": "Produces structured real-time replies while remembering the current conversation",
"provider": "openai",
"model": "gpt-5.6-luna",
"backups": [
{
"provider": "anthropic",
"model": "claude-haiku-4-5-20251001"
}
],
"request_type": "chat",
"system_instructions": "Act as a helpful, concise customer-facing assistant. Use relevant facts from earlier turns in the current session when answering. If a fact is not present in the conversation, say that you do not know instead of inventing it. Do not claim to remember information outside the supplied session. Return a direct reply plus a short summary, sentiment, confidence, topics, and any clear follow-up action items.",
"structure": "chatbot_response",
"customer_fields": [],
"test_mode": false,
"sessions_enabled": true,
"backend_pipeline": {
"enabled": true,
"events": [
{
"name": "webhook_received"
}
]
}
}
]
}Looking for something else?
More templates are on the way. In the meantime, you can build your own workflows from scratch in the ModelRiver console.