AutomationFlowsGeneral › Simple Letta Chat

Simple Letta Chat

Simple Letta Chat. Uses @letta-ai/n8n-nodes-letta. Event-driven trigger; 3 nodes.

Event trigger★★★★☆ complexity3 nodes@Letta Ai/N8N Nodes Letta
General Trigger: Event Nodes: 3 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": "Simple Letta Chat",
  "nodes": [
    {
      "parameters": {},
      "id": "8b5e4d7f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "operation": "sendMessage",
        "agentId": "={{ $json.agentId || 'agent-123' }}",
        "role": "user",
        "message": "Hello! Can you help me understand what you can do?",
        "additionalOptions": {}
      },
      "id": "9c6f5e8a-2b3c-4d5e-6f7a-8b9c0d1e2f3a",
      "name": "Letta",
      "type": "@letta-ai/n8n-nodes-letta.letta",
      "typeVersion": 1,
      "position": [
        470,
        300
      ],
      "credentials": {
        "lettaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Extract the assistant's response from Letta\nconst messages = $input.item.json.messages || [];\n\n// Find the assistant message\nconst assistantMessage = messages.find(msg => msg.role === 'assistant');\n\nreturn {\n  response: assistantMessage?.text || 'No response',\n  allMessages: messages,\n  usage: $input.item.json.usage\n};"
      },
      "id": "a7d6c5b4-3e2f-4d5c-6b7a-8c9d0e1f2a3b",
      "name": "Format Response",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        690,
        300
      ]
    }
  ],
  "connections": {
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "Letta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Letta": {
      "main": [
        [
          {
            "node": "Format Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 0,
  "updatedAt": "2025-01-07T00:00:00.000Z",
  "versionId": "1"
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

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

About this workflow

Simple Letta Chat. Uses @letta-ai/n8n-nodes-letta. Event-driven trigger; 3 nodes.

Source: https://github.com/letta-ai/n8n-nodes-letta/blob/6cf2d1da050c4c0deb9f2a57273f91721cef4936/demo/workflows/simple-chat.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

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

General

Blotato. Uses googleSheets, @blotato/n8n-nodes-blotato. Event-driven trigger; 65 nodes.

Google Sheets, @Blotato/N8N Nodes Blotato
General

This template is a hands-on, practical exam designed to help you master n8n Expressions—the key to accessing and manipulating data in your workflows.

Stop And Error
General

This template is a hands-on, practical exam designed to test your understanding of the fundamental JSON data types. It's the perfect way to solidify your knowledge after learning the basics.

Stop And Error
General

Agendamiento. Uses n8n-nodes-evolution-api, redis, dataTable, executeWorkflowTrigger. Event-driven trigger; 60 nodes.

N8N Nodes Evolution Api, Redis, Data Table +2
General

Kv Cloudflare Key Value Database Full Api Integration Workflow. Uses stickyNote, httpRequest, manualTrigger. Event-driven trigger; 47 nodes.

HTTP Request