See llms.txt for all machine-readable content.

Postgres and Relevance AI integration

Save yourself the work of writing custom integrations for Postgres and Relevance AI 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 Postgres and Relevance AI

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.

Postgres and Relevance AI integration: Create a new workflow and add the first step

Generate stock market insights with technical analysis, AI, and Telegram publishing

📈 AI Stock Analytics & BCS "Profit" Social Network Publishing Workflow This workflow automatically generates stock market insights for selected tickers (e.g. GAZP, SBER, LKOH) using historical data, technical indicators, and an AI model. The results are then sent to Telegram for quick moderation and publishing. 🔑 What this workflow does Runs twice a day on a schedule with a predefined list of tickers. Fetches historical market data from a broker API. Calculates key technical indicators (RSI, EMA/SMA, MACD, Bollinger Bands, ADX). Generates an investment post (title + summary) using an LLM. Stores results in a PostgreSQL database. Sends a draft post to Telegram with inline buttons “Publish” and “Retry”. Handles Telegram actions: publishes the post to the final channel or re-runs the generation process. 📌 Key features Multi-ticker support in a single run. Automatic error handling (e.g. missing data or invalid AI JSON output). Human-in-the-loop moderation through Telegram before publishing. PostgreSQL integration for history and analytics storage. Flexible structure: easy to extend with new tickers, indicators, or publishing channels. 🛠️ Nodes used Trigger: Schedule (twice daily) + Telegram Trigger (button callbacks). Data: HTTP Request (broker API), Function (technical analysis calculations). AI: OpenAI / OpenRouter with structured JSON output. Storage: PostgreSQL (analytics history). Messaging: Telegram (drafts and publishing). 🚀 Who is this for Fintech startups looking to automate market content. Investment bloggers posting daily stock analysis. Analysts experimenting with trading strategies on real market data.

Build your own Postgres and Relevance AI integration

Create custom Postgres and Relevance AI 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.

Postgres supported actions

Supported methods for Relevance AI

Delete
Get
Head
Options
Patch
Post
Put

To set up Relevance AI integration, add the HTTP Request node to your workflow canvas and authenticate it using a generic authentication method. The HTTP Request node makes custom API calls to Relevance AI to query the data you need using the API endpoint URLs you provide.

Requires additional credentials set up

Use n8n's HTTP Request node with a predefined or generic credential type to make custom API calls.

Postgres and Relevance AI integration details

Postgres

Postgres, or PostgresSQL, is a free, open-source tool that helps you emphasize extensibility and SQL compliance. It is an advanced object-relational database that provides high performance, reliability and feature robustness.

Relevance AI

Relevance AI is the hub for the AI Workforce, empowering individuals to create autonomous AI teams and automate their processes effortlessly.

Other integrations with Postgres and Relevance AI

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 Postgres integrations

Need help setting up your Postgres and Relevance AI integration?

Discover our latest community's recommendations and join the discussions about Postgres and Relevance AI integration.

  • Mikhail Savenkov

    Postgres node IN operator with parameters

    Mikhail Savenkov

    Describe the problem/error/question Postgres node is not working with IN Operator when the parameters is an Array. I suppose that’s because of the sanity checks. E.g. I have a list of some workflows that I’m returning v…

    Open topic
  • Honza Pav

    Passing an array as query parameter in Postgresql

    Honza Pav

    Hello, I have a follow-up question related to a topic that has been discussed but is closed: Postgres use array as a query parameters I want to pass an array into a Postgresql query as a query parameter. Ideally, I woul…

    Open topic
  • CrizCJK

    Issue with AI Agent not reading full PostgreSQL data

    CrizCJK

    Hello everyone, I’m running into an issue with PostgreSQL in n8n that I can’t figure out. My PostgreSQL database has about 20,000 records of sales and stock data. The problem is that my AI Agent doesn’t seem to read th…

    Open topic
  • Thạch Vũ Ngọc

    Postgresql Insert error parsing ISO format string

    Thạch Vũ Ngọc

    I using Postgresql Insert node, but it error when column type is timestamp I have the input date in ISO 8601 date string format and I keep getting an error. What is the error message (if any)? Input of Insert node O…

    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

Looking to integrate Slack and VirusTotal in your company?

Three colleagues talking around laptops at a shared desk

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate Postgres with Relevance AI

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

Man in a brown jacket working at his desk by a window