AutomationFlowsAI & RAG › Automate Sap Business Partner Analysis with Openai Gpt-4o & Gmail Reporting

Automate Sap Business Partner Analysis with Openai Gpt-4o & Gmail Reporting

ByGhufran Ridhawi @ghufran-ridhawi on n8n.io

This workflow is intended for micro businesses, SAP users, companies, users or owners who need system simplicity in SAP. In micro businesses, SAP users or individuals, there must be the task of manually inputting a lot of data or here in partner businesses in SAP, the reality is…

Event trigger★★★★☆ complexityAI-powered18 nodesGmailAgentOpenAI ChatHTTP Request
AI & RAG Trigger: Event Nodes: 18 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4287 — we link there as the canonical source.

This workflow follows the Agent → Gmail recipe pattern — see all workflows that pair these two integrations.

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
{
  "id": "9191fMgAclXEVBpJ",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "SAP Business Partner (A2X) For Business",
  "tags": [],
  "nodes": [
    {
      "id": "7c1090c4-315e-4736-bdbf-a36b1c52375e",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -320,
        860
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cba2cf67-5bec-48ab-ad5c-4cddd9b315ea",
      "name": "Send Gmail Summary",
      "type": "n8n-nodes-base.gmail",
      "position": [
        720,
        860
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b8686338-b184-4cd9-9066-3c15c6172581",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        640,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "6d1e0a09-e20b-4da9-a67a-18a6cddbdbd3",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        1440
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8ce30e5e-9ca1-4dda-9581-565b78505b60",
      "name": "Extract Results",
      "type": "n8n-nodes-base.code",
      "position": [
        180,
        860
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7ffec67a-6a91-4019-880c-3e804319bd94",
      "name": "Format Email Body",
      "type": "n8n-nodes-base.code",
      "position": [
        160,
        1240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9b0b3577-fb61-4e58-b127-9309b65d3edf",
      "name": "Extract Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        420,
        860
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "aba689f3-dc1c-49a4-a948-5143c6eff4a5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fb83f637-e5ad-4069-9476-a328427ef220",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed0e6f34-0ec6-4a12-b5dd-a3820a26a3d4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "af7b4984-f2b3-42a3-b8cf-45a707c55660",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5bf9e5cf-9152-4443-8d83-49098511382a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        1040
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "72822ef7-0eff-48a7-8cf3-deaf7c8f2ed1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "43ddfad8-16b1-4867-ba7e-0a305bf8bcab",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        1040
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4dcaa401-e75c-45fc-a606-eb64b7384ab8",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        1600
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "48e0f9b2-2859-422e-8016-87a2fb9adf2c",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "74e9e4e5-e5cd-4600-bf8b-6d5f608c96d0",
      "name": "SAP",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -60,
        860
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "79d5eef9-4eed-4229-b314-4df44c1d10ed",
      "name": "Send Gmail List",
      "type": "n8n-nodes-base.gmail",
      "position": [
        420,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "fe8ea2b4-2636-457a-86b1-63fed40340f9",
  "connections": {
    "SAP": {
      "main": [
        [
          {
            "node": "Extract Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "SAP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Extract Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Results": {
      "main": [
        [
          {
            "node": "Format Email Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Summary": {
      "main": [
        [
          {
            "node": "Send Gmail Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Gmail List": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Email Body": {
      "main": [
        [
          {
            "node": "Send Gmail List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

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

About this workflow

This workflow is intended for micro businesses, SAP users, companies, users or owners who need system simplicity in SAP. In micro businesses, SAP users or individuals, there must be the task of manually inputting a lot of data or here in partner businesses in SAP, the reality is…

Source: https://n8n.io/workflows/4287/ — 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

Typeform IA - YT. Uses typeformTrigger, agent, lmChatOpenAi, toolWorkflow. Event-driven trigger; 75 nodes.

Typeform Trigger, Agent, OpenAI Chat +7
AI & RAG

Transform your salon/service business with this streamlined WhatsApp automation system featuring Claude integration, zero-setup database management, and intelligent conversation handling. Claude MCP I

WhatsApp Trigger, WhatsApp, Redis +11
AI & RAG

Transcript Evalu8r V2 is a robust browser-based transcript analysis tool powered by Deepgram’s speech-to-text API and built into an n8n workflow template. This release introduces full in-browser audio

Google Drive Trigger, HTTP Request, Agent +5
AI & RAG

Transcript Evalu8r is an AI-powered transcript analysis workflow that automates the processing, visualization, and evaluation of transcribed conversations. This n8n workflow template is designed to he

Google Drive Trigger, HTTP Request, Agent +5
AI & RAG

🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting. Uses httpRequest, lmChatOpenAi, executeWorkflowTrigger, toolWorkflow. Event-driven trigger; 49 nodes.

HTTP Request, OpenAI Chat, Execute Workflow Trigger +8