Redis Chat Memory
Redis Chat Memory stores conversation history in Redis for fast, persistent storage.
Categories: Artificial Intelligence
Type: redisChatMemory/v1
Connections
Version: 1
custom
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| username | Username | STRING | The Redis username (optional, for Redis 6.0+ ACL). | false |
| password | Password | STRING | The Redis password. | false |
Actions
Add Messages
Name: addMessages
Adds messages to the chat memory for a conversation.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| conversationId | Conversation ID | STRING | The unique identifier for the conversation. | true |
| messages | Messages | ARRAY Items[{STRING(role), STRING(content)}] | The messages to add to the conversation. | true |
Example JSON Structure
{
"label" : "Add Messages",
"name" : "addMessages",
"parameters" : {
"conversationId" : "",
"messages" : [ {
"role" : "",
"content" : ""
} ]
},
"type" : "redisChatMemory/v1/addMessages"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| conversationId | STRING | |
| messageCount | INTEGER |
Output Example
{
"conversationId" : "",
"messageCount" : 1
}Get Messages
Name: getMessages
Retrieves all messages from a conversation.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| conversationId | Conversation ID | STRING | The unique identifier for the conversation. | true |
Example JSON Structure
{
"label" : "Get Messages",
"name" : "getMessages",
"parameters" : {
"conversationId" : ""
},
"type" : "redisChatMemory/v1/getMessages"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| conversationId | STRING | |
| messages | ARRAY Items[{STRING(role), STRING(content)}] |
Output Example
{
"conversationId" : "",
"messages" : [ {
"role" : "",
"content" : ""
} ]
}Delete Conversation
Name: deleteConversation
Deletes all messages for a conversation.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| conversationId | Conversation ID | STRING | The unique identifier for the conversation to delete. | true |
Example JSON Structure
{
"label" : "Delete Conversation",
"name" : "deleteConversation",
"parameters" : {
"conversationId" : ""
},
"type" : "redisChatMemory/v1/deleteConversation"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| conversationId | STRING | |
| deleted | BOOLEAN Optionstrue, false |
Output Example
{
"conversationId" : "",
"deleted" : false
}List Conversations
Name: listConversations
Lists all conversation IDs in the chat memory.
Example JSON Structure
{
"label" : "List Conversations",
"name" : "listConversations",
"type" : "redisChatMemory/v1/listConversations"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| conversationIds | ARRAY Items[STRING] | |
| count | INTEGER |
Output Example
{
"conversationIds" : [ "" ],
"count" : 1
}How is this guide?
Last updated on
Redis
Redis is an open-source, in-memory data structure store used as a database, cache, and message broker, known for its high performance and support for various data structures like strings, hashes, lists, sets, and more.
Request
Send an HTTP request from your application to a designated integration and workflow, with the option to receive a synchronous response.