AutomationFlowsAI & RAG › Extract Account Memo & Generate Agent Spec

Extract Account Memo & Generate Agent Spec

Original n8n title: Clara Pipeline a - Demo to Agent V1

Clara Pipeline A - Demo to Agent v1. Uses executeCommand, readBinaryFile. Event-driven trigger; 7 nodes.

Event trigger★★★★☆ complexity7 nodesExecute CommandRead Binary File
AI & RAG Trigger: Event Nodes: 7 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Clara Pipeline A - Demo to Agent v1",
  "nodes": [
    {
      "parameters": {
        "content": "## Clara Pipeline A\n### Demo Call \u2192 v1 Agent\n\nThis workflow:\n1. Reads a demo transcript file\n2. Extracts account memo (via Python script)\n3. Generates Retell agent spec\n4. Outputs v1 artifacts",
        "height": 260,
        "width": 320
      },
      "id": "note-1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        140
      ],
      "typeVersion": 1
    },
    {
      "parameters": {},
      "id": "trigger-1",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        600,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "transcript_path",
              "value": "/data/datasets/demo/bens_electric_solutions/transcript.txt"
            },
            {
              "name": "account_id",
              "value": "bens_electric_solutions"
            }
          ]
        },
        "options": {}
      },
      "id": "set-input-1",
      "name": "Set Input Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        820,
        300
      ],
      "typeVersion": 3.4
    },
    {
      "parameters": {
        "command": "cd /data && python -m scripts.extract_account_memo \"{{ $json.transcript_path }}\" --account-id \"{{ $json.account_id }}\" --source demo"
      },
      "id": "extract-memo-1",
      "name": "Extract Account Memo",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1060,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "command": "cd /data && python -m scripts.generate_agent_spec \"{{ $json.account_id }}\" --version v1"
      },
      "id": "gen-spec-1",
      "name": "Generate Agent Spec",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1300,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "filePath": "/data/outputs/accounts/{{ $json.account_id }}/v1/account_memo.json"
      },
      "id": "read-memo-1",
      "name": "Read Generated Memo",
      "type": "n8n-nodes-base.readBinaryFile",
      "position": [
        1540,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "content": "### \u2705 Pipeline A Complete\n\nOutputs saved to:\n- `/data/outputs/accounts/<id>/v1/account_memo.json`\n- `/data/outputs/accounts/<id>/v1/agent_spec.json`",
        "height": 160,
        "width": 320
      },
      "id": "note-2",
      "name": "Completion Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1780,
        220
      ],
      "typeVersion": 1
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Set Input Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Input Parameters": {
      "main": [
        [
          {
            "node": "Extract Account Memo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Account Memo": {
      "main": [
        [
          {
            "node": "Generate Agent Spec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Agent Spec": {
      "main": [
        [
          {
            "node": "Read Generated Memo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Clara Pipeline A - Demo to Agent v1. Uses executeCommand, readBinaryFile. Event-driven trigger; 7 nodes.

Source: https://github.com/rishav-3010/Assignment/blob/6b12e0049eede6cda762bf09ee4ef27bb26d48bf/workflows/pipeline_a.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow creates a multi-talented AI assistant named Simran that interacts with users via Telegram. It can handle text and voice messages, understand the user's intent, and perform various tasks.

MongoDB, Chain Llm, Google Gemini Chat +11
AI & RAG

Estimate material price and total cost for grouped BIM/CAD elements using an LLM-driven analysis. The workflow accepts an existing XLSX (from your model) or, if missing, can trigger a local RvtExporte

OpenAI, Agent, Anthropic Chat +6
AI & RAG

Estimate embodied carbon (CO2e) for grouped BIM/CAD elements. The workflow accepts an existing XLSX (grouped element data) or, if missing, can trigger a local RvtExporter.exe to generate one. It detec

OpenAI, Agent, Anthropic Chat +6
AI & RAG

Clara Pipeline B - Onboarding to Agent v2. Uses executeCommand, readBinaryFile. Event-driven trigger; 6 nodes.

Execute Command, Read Binary File
AI & RAG

General Parsing Agent. Uses watchFilesystem, readBinaryFile, httpRequest, writeBinaryFile. Event-driven trigger; 10 nodes.

Watch Filesystem, Read Binary File, HTTP Request +1