Communication & Messaging

Optimize Prompt

Optimize Prompt

Manual
High
10
Nodes
Manual
Trigger
High
Complexity
7/22/2025
Added

Workflow Overview

Total Nodes
10
Node Types
7

Node Types

execute Workflow Trigger
When Executed by Another Workflow
1 node
agent
AI Agent
1 node
telegram
Telegram3
1 node
lm Chat Open Ai
OpenAI Chat Model
1 node
code
Split into chunks1
1 node
sticky Note
Sticky Note, Sticky Note1, Sticky Note3, Sticky Note2
4 nodes
memory Buffer Window
Simple Memory
1 node

Workflow JSON

8.88 KB
{
  "id": "heyKyETy1uK0xoX4",
  "meta": {
    "instanceId": "d00caf92aa0876c596905aea78b35fa33a722cc8e479133822c17064d15c2c1d",
    "templateCredsSetupCompleted": true
  },
  "name": "Optimize Prompt",
  "tags": [],
  "nodes": [
    {
      "id": "a58be0f5-d11d-4bec-bd8c-0c3a7325b22b",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -1880,
        820
      ],
      "parameters": {
        "inputSource": "passthrough"
      },
      "typeVersion": 1.1
    },
    {
      "id": "67fe408f-e889-4eeb-9e48-f60a579c69f0",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1600,
        720
      ],
      "parameters": {
        "text": "={{ $json.query }}",
        "options": {
          "systemMessage": "Given the user's initial prompt below, please enhance it. Start with a clear, precise instruction at the beginning. Include specific details about the des...

Showing first 1000 characters. Click "Expand" to view the full JSON.