See llms.txt for all machine-readable content.

MySQL and Notion integration

Save yourself the work of writing custom integrations for MySQL and Notion and use n8n instead. Build adaptable and scalable Development, Data & Storage, workflows that work with your technology stack. All within a building experience you will love.

How to connect MySQL and Notion

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

MySQL and Notion integration: Create a new workflow and add the first step

Evaluate and rank supplier bids with MySQL, Groq LLM, Notion, and Gmail

Quick overview This workflow manually runs an AI-assisted procurement pipeline that pulls submitted bids from MySQL, converts pricing using FreeCurrencyAPI exchange rates, scores qualitative proposal text with Groq LLMs, ranks suppliers across multiple scenarios, logs top results to Notion, and emails an executive summary via Gmail. How it works Starts when you manually trigger the workflow. Fetches live currency exchange rates from FreeCurrencyAPI and pulls submitted bids for a specific RFP from a MySQL database. Normalizes each bid by converting quoted prices to USD, converting delivery durations to days, and anonymizing suppliers with blind aliases. Sends each bid’s qualitative proposal text and compliance certifications to a Groq-hosted LLM to produce structured SLA, support, compliance, and risk scores. Applies a risk penalty, calculates weighted rankings for multiple scenarios (standard, cost optimized, risk averse, and speed to market), and outputs only the top three suppliers. Creates a Notion database page for each shortlisted supplier with key metrics and the AI justification. Generates a structured executive procurement summary with a Groq-hosted LLM, converts the markdown report to HTML, and emails it via Gmail. Setup Configure your MySQL credentials and update the table name and RFP/status filters used to select submitted bids. Add your FreeCurrencyAPI key and ensure the exchange-rate request includes it as the apikey query parameter. Add your Groq API credentials for both LLM steps and confirm the selected models are available in your Groq account. Connect your Notion account, select the target database, and make sure its properties match the fields being written (price, delivery days, quality score, justification, and scenario score). Connect your Gmail account and set the recipient(s) in the Gmail node so the HTML executive report is delivered to the right stakeholders. Additional info Add‑ons Webhook Trigger: Replace the Manual Trigger node with a Webhook node to automatically run this evaluation the moment an RFP deadline closes. PDF Report Generation: Add an HTML-to-PDF node before the Gmail node to send a polished, downloadable PDF attachment to your executives. ERP Integration: Swap the Notion node with a Salesforce, NetSuite, or SAP node to log the top-ranked vendors directly into your enterprise resource planning system. Use Case Examples While currently configured for IT Procurement, this workflow can be easily adapted for: IT Procurement: Evaluating software licenses, server hardware, or cloud infrastructure providers based on uptime and security. Construction & Contractor Bidding: Scoring construction firms based on safety records, material costs, and timeline estimates. Marketing Agency Selection: Ranking agencies based on retainer fees, portfolio quality scores, and SLA response times. Supply Chain & Logistics: Assessing shipping partners based on freight costs, guaranteed delivery speeds, and regional compliance. Freelancer / Consultant Vetting: Automatically reviewing submitted portfolios and hourly rates to shortlist top talent for a project. (Note: With minor tweaks to the database query and AI prompts, there can be many more such use cases for this workflow!) Troubleshooting Guide | Issue | Possible Cause | Solution | | --- | --- | --- | | Workflow fails at HTTP Request | Invalid or expired FreeCurrencyAPI key. | Generate a new API key from your FreeCurrencyAPI dashboard and update the node parameterscite: 1]. | | No bids fetched from MySQL | Incorrect RFP ID or status. | Check the Fetch Submitted Bids node and verify that rfp_id and status exactly match your database records[cite: 1]. | | AI Node throws schema error | LLM hallucinated outside the requested JSON format. | Try changing the Groq model to a more robust version, or slightly adjust the prompt in the AI Proposal Auditor[cite: 1]. | | Notion node fails to save data | Integration is not invited to the Notion page. | Open Notion, go to your target database, click "Share," and invite your n8n integration[cite: 1]. | | Emails are not sending | Gmail OAuth token expired. | Re-authenticate your Gmail credentials in the n8n settings[cite: 1]. | Need Help? Building and optimizing advanced AI automations can sometimes be tricky! If you need a helping hand to set up this workflow, configure database connections, customize the AI prompts or build powerful Add-Ons tailored to your specific business needs, we are here for you. [Contact WeblineIndia for expert assistance with this workflow or to help you design similar custom automation processes for your organization.

Popular ways to use the MySQL and Notion integration

Build your own MySQL and Notion integration

Create custom MySQL and Notion workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

MySQL supported actions

Notion supported actions

MySQL and Notion integration details

MySQL

MySQL

The relational database management system MySQL is free and open-source. Although MySQL includes standalone clients that let users communicate with a MySQL database directly using SQL, it is more frequently used in conjunction with other applications to develop applications that require relational database functionality.

Notion

Notion

Notion is an all-in-one workspace for you and your team. It helps team members create tasks, wikis, and databases all at one place.

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQ about MySQL integrations

Need help setting up your MySQL and Notion integration?

Discover our latest community's recommendations and join the discussions about MySQL and Notion integration.

  • Mohammadali

    Using variables

    Mohammadali

    Hi guys. I am getting certain data from my SQL database. I want to pass that data to an API. The data I get from the database contains this variable: {{ $input.item }} the problem is that I can not send the value of…

    Open topic
  • Michael Zareno

    MySQL Select and numbers

    Michael Zareno

    I have a MySQL table. Test data consists of an "Amount’ field, and three rows with values, 1000, My JSON input is: [ { "row_number": 2, "Amount": -1000 }, { "row_number": 3, "Amount": -52.23 }, …

    Open topic
  • Shazim Ali

    Pass dynamic perameters to postgres_SQL node query

    Shazim Ali

    hi i am new to n8n basically i have build a chat bot, which is created query on the base of question, but sometime AI based queries are failed to give accurate result, so i have created sql function in vector database, t…

    Open topic
  • Neal A Richardson Sr

    Migration error on fresh deployment of 1.45.2 in kubernetes

    Neal A Richardson Sr

    Describe the problem/error/question I’m trying to spin up an n8n instance in kubernetes as a fresh install. I have a database created and the connection works (it created 22 tables) but then the docker container bombs o…

    Open topic
  • GabrielBackend

    MySql node - Inserting NULL in MariaDB

    GabrielBackend

    Greetings, I’m trying to insert null values into my MariaDB using MySQL node. I need to use Execute SQL mode so I can call functions inside my db and do verifications in case of a update, for example IFNULL. There is n…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate MySQL with Notion

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship