Neo4j Chat Memory
Neo4j Chat Memory stores conversation history in Neo4j graph database for persistent storage with graph-based relationships.
Categories: Artificial Intelligence
Type: neo4jChatMemory/v1
Connections
Version: 1
custom
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| username | Username | STRING | The Neo4j username. | false |
| password | Password | STRING | The Neo4j 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" : "neo4jChatMemory/v1/addMessages"
}Output
This action does not produce any output.
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" : "neo4jChatMemory/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" : "neo4jChatMemory/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" : "neo4jChatMemory/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
Neo4j
Neo4j is an open-source NoSQL graph database. It is a fully transactional database (ACID) that stores data structured as graphs consisting of nodes, connected by relationships.
Nifty
Nifty Project Management is a software tool that streamlines team collaboration and project tracking with features like task management, timelines, and communication tools to enhance productivity.