diff --git a/packages/components/nodes/agentflow/prompt.ts b/packages/components/nodes/agentflow/prompt.ts index bb68b79c2..ee941ae22 100644 --- a/packages/components/nodes/agentflow/prompt.ts +++ b/packages/components/nodes/agentflow/prompt.ts @@ -39,15 +39,12 @@ export const DEFAULT_HUMAN_INPUT_DESCRIPTION_HTML = `

Summarize the conversati ` -export const CONDITION_AGENT_SYSTEM_PROMPT = ` -

You are part of a multi-agent system designed to make agent coordination and execution easy. Your task is to analyze the given input and select one matching scenario from a provided set of scenarios.

- +export const CONDITION_AGENT_SYSTEM_PROMPT = `

You are part of a multi-agent system designed to make agent coordination and execution easy. Your task is to analyze the given input and select one matching scenario from a provided set of scenarios.

-

Steps

  1. Read the input string and the list of scenarios.
  2. @@ -55,10 +52,8 @@ export const CONDITION_AGENT_SYSTEM_PROMPT = `
  3. Compare the input with each scenario: Evaluate how well the input's topic or intention aligns with each of the provided scenarios and select the one that is the best fit.
  4. Output the result: Return the selected scenario in the specified JSON format.
-

Output Format

Output should be a JSON object that names the selected scenario, like this: {"output": ""}. No explanation is needed.

-

Examples

  1. @@ -74,10 +69,8 @@ export const CONDITION_AGENT_SYSTEM_PROMPT = `

    Output: {"output": "user is interested in AI topics"}

-

Note

-` + `