Can I change the User_Input in the Agent Node of the Prompts Library?

Can I modify the User_Input in the Agent Node of the Prompts Library?

I want to apply the User_Input in the Agent Node of the Prompts Library to a modified User_Input.

For example, if the user inputs “save” I want to change it to “file save” and have it be applied to the prompt and executed.

i want to save this → i want to file save this

        {
            "role": "user",
            "content": "i want to save"
        }


{
“role”: “user”,
“content”: “i want to file save this”
}

Please tell me how to do this.

There are several ways to accomplish what you are trying to do. The easiest would be to use a preprocessor script to do this text manipulation is described in this document, " Agent Node Execution

Execution Flow

During runtime, the Agent Node efficiently orchestrates interactions between the node, language model, and Platform to enable seamless user experiences and integration with external systems. You can work with this node like any other node within Dialog Tasks and invoke it within multiple tasks.

During runtime, the node behaves as follows:

  1. Input Processing: When the agent node receives user input, it processes it first through a Pre-Processor script. This script runs only once before the orchestration starts between the node and the platform. This script can perform tasks like formatting the input or extracting relevant information before sending the input to the language model."