{
  "openruna_format": "flow-graph-v1",
  "title": "AI Agent with charts capabilities using OpenAI Structured Output",
  "slug": "ai-agent-with-charts-capabilities-using-openai-structured-output",
  "source_filename": "1112_HTTP_Stickynote_Automation_Webhook.json",
  "nodes": [
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Generate a chart",
      "name": "Generate a chart",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Execute \"Generate a chart\" tool",
      "name": "Execute \"Generate a chart\" tool",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "OpenAI - Generate Chart definition with Structured Output",
      "name": "OpenAI - Generate Chart definition with Structured Output",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set response",
      "name": "Set response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    }
  ],
  "edges": [
    {
      "from": "When chat message received",
      "to": "AI Agent"
    },
    {
      "from": "Execute \"Generate a chart\" tool",
      "to": "OpenAI - Generate Chart definition with Structured Output"
    },
    {
      "from": "OpenAI - Generate Chart definition with Structured Output",
      "to": "Set response"
    }
  ]
}