{
  "openruna_format": "flow-graph-v1",
  "title": "OpenAI Assistant with custom n8n tools",
  "slug": "openai-assistant-with-custom-n8n-tools",
  "source_filename": "1582_Summarize_Stickynote_Automation_Triggered.json",
  "nodes": [
    {
      "id": "On new manual Chat Message",
      "name": "On new manual Chat Message",
      "integration": "@n8n/n8n-nodes-langchain.manualChat",
      "kind": "trigger"
    },
    {
      "id": "OpenAI Assistant",
      "name": "OpenAI Assistant",
      "integration": "@n8n/n8n-nodes-langchain.openAiAssistant",
      "kind": "action"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Mapping data",
      "name": "Mapping data",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "List countries?",
      "name": "List countries?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Mapping data1",
      "name": "Mapping data1",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Return country list",
      "name": "Return country list",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Return specific capital",
      "name": "Return specific capital",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Tool to call the workflow below",
      "name": "Tool to call the workflow below",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Concatenate country names",
      "name": "Concatenate country names",
      "integration": "summarize",
      "kind": "action"
    },
    {
      "id": "Get the matching country's details",
      "name": "Get the matching country's details",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Tool: Get current date and time",
      "name": "Tool: Get current date and time",
      "integration": "@n8n/n8n-nodes-langchain.toolCode",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Mapping data",
      "to": "Concatenate country names"
    },
    {
      "from": "Mapping data1",
      "to": "Get the matching country's details"
    },
    {
      "from": "List countries?",
      "to": "Mapping data"
    },
    {
      "from": "List countries?",
      "to": "Get the matching country's details"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "List countries?"
    },
    {
      "from": "Concatenate country names",
      "to": "Return country list"
    },
    {
      "from": "On new manual Chat Message",
      "to": "OpenAI Assistant"
    },
    {
      "from": "Get the matching country's details",
      "to": "Return specific capital"
    }
  ]
}