Skip to content

Commit

Permalink
Change option name for agent and memory nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
imchairmanm committed Dec 19, 2024
1 parent 15cb063 commit f48f64c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Enter these parameters:
- **Operation**: Select **Message an Assistant**.
- **Assistant**: Select the assistant you want to message.
- **Prompt**: Enter the text prompt or message that you want to send to the assistant.
- **Take from Previous Node Automatically**: Automatically use the input from a previous node's `chatInput` field.
- **Connected Chat Trigger Node**: Automatically use the input from a previous node's `chatInput` field.
- **Define Below**: Manually define the prompt by entering static text or using an expression to reference data from previous nodes.

### Options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You might see this in one of two scenarios:

1. When you've set the **Prompt** to **Define below** and have an expression in your **Text** that isn't generating a value.
* To resolve, make sure your expressions reference valid fields and that they resolve to valid input rather than null.
2. When you've set the **Prompt** to **Take from previous node automatically** and the incoming data has null values.
2. When you've set the **Prompt** to **Connected Chat Trigger Node** and the incoming data has null values.
* To resolve, remove any null values from the `chatInput` field of the input node.

## Error in sub-node Window Buffer Memory
Expand All @@ -47,4 +47,4 @@ To resolve this, click the + Chat Model button at the bottom of your screen when

This error occurs when the agent expects to get the prompt from the previous node automatically. Typically, this happens when you're using the [Chat Trigger Node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/).

To resolve this issue, find the **Prompt** parameter of the AI Agent node and change it from **Take from previous node automatically** to **Define below**. This allows you to manually build your prompt by referencing output data from other nodes or by adding static text.
To resolve this issue, find the **Prompt** parameter of the AI Agent node and change it from **Connected Chat Trigger Node** to **Define below**. This allows you to manually build your prompt by referencing output data from other nodes or by adding static text.
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ You might see this error in one of two scenarios:

1. When you've set the **Prompt** to **Define below** and haven't entered anything in the **Text** field.
* To resolve, enter a valid prompt in the **Text** field.
2. When you've set the **Prompt** to **Take from previous node automatically** and the incoming data has no field called `chatInput`.
2. When you've set the **Prompt** to **Connected Chat Trigger Node** and the incoming data has no field called `chatInput`.
* The node expects the `chatInput` field. If your previous node doesn't have this field, add an [Edit Fields (Set)](/integrations/builtin/core-nodes/n8n-nodes-base.set/) node to edit an incoming field name to `chatInput`.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You might see this in one of two scenarios:
1. When you've set the **Prompt** to **Define below** and have an expression in your **Text** that isn't generating a value.
* To resolve, enter a valid prompt in the **Text** field.
* Make sure any expressions reference valid fields and that they resolve to valid input rather than null.
2. When you've set the **Prompt** to **Take from previous node automatically** and the incoming data has null values.
2. When you've set the **Prompt** to **Connected Chat Trigger Node** and the incoming data has null values.
* To resolve, make sure your input contains a `chatInput` field. Add an [Edit Fields (Set)](/integrations/builtin/core-nodes/n8n-nodes-base.set/) node to edit an incoming field name to `chatInput`.
* Remove any null values from the `chatInput` field of the input node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In Chat Triggers, the **Load Previous Session** option retrieves previous chat m
1. In your **Chat Trigger** node, set the **Load Previous Session** option to **From Memory**. This is only visible if you've made the chat publicly available.
2. Attach a **Window Buffer Memory** node to the **Memory** connector.
3. Attach the same **Window Buffer Memory** node to **Memory** connector of your **Agent**.
4. In the **Window Buffer Memory** node, set **Session ID** to **Take from previous node automatically**.
4. In the **Window Buffer Memory** node, set **Session ID** to **Connected Chat Trigger Node**.

One instance where you may want to attach separate memory nodes to your Chat Trigger and the Agent is if you want to set the **Session ID** in your memory node to **Define below**.

Expand Down

0 comments on commit f48f64c

Please sign in to comment.