How do I set up the Chat memory manager node?#
The Chat memory manager node can be connected to any pathway that receives end-user inputs from the chat trigger.
The Chat memory manager node can be added as many times as required in a given pathway, and is used to:
- Save end-user inputs sent to the chat trigger
- Retrieve these inputs to pass back into the pathway
- Delete the data to clean-up when a chat pathway has concluded
Before you begin#
Step 1 - add the node#
- Click + to open the nodes panel
- Search for Chat memory manager in the node search field.
- Click the node to add it to the canvas.
Step 2 - configure settings#
Choose the Operation mode that determines how messages are read, updated or deleted from attached memory.
Read messages from attached memory#
Choose Get Many to read messages from attached memory.
Parameters | Description |
---|---|
Simplify output | Include only the sender and message in output |
Group Messages | Group messages as a batch or as individual items |
Insert messages to attached memory#
Add or overwrite messages in attached memory then add one or more messages.
- Choose AI, Machine or User as Message type
- Add a message in one of three ways:
Method | Steps | Additional information |
---|---|---|
Fixed input from input values | * Click Test step to load values from connected input nodes * Drag and drop values from the input panel to the Message field |
|
Fixed input | Click Fixed on the Message field, then Enter your own JSON value | Learn about Fixed responses |
Expression | * Click Expression on the Message field * Click at the bottom right of the field to open the editor |
Learn about the expression editor |
- Hide the message from the Chat UI in two ways:
Method | Steps | Additional information |
---|---|---|
Toggle | Toggle Hide message from chat | |
Expression | Click Expression on the Hide messge from chat * Click at the bottom right of the field to open the editor |
Learn about the expression editor |
Delete messages from attached memory#
You can delete all messages from attached memory or a specified number from the end.
- Choose All messages
- Specify an integer value
- Specify a JSON expression in the
Method | Steps | Additional information |
---|---|---|
Specific number | * Choose Last N then add an integer value to the Messages count field that correspond to the number of messages to delete from the end of attached memory. | |
Specific number as expression | Choose Last N then click Expression > at the bottom right of the field to open the Expression editor | Learn about the expression editor |
All messages | Choose All messages |
Next step#
Connect the Chat memory manager to an appropriate memory node: