# PostgreSQL AI integration: assistant & automation

> PostgreSQL AI integration: 8 read and 6 write actions for chat, agents and tasks. Changes wait for your approval by default. Hosted in Frankfurt.

Source: https://akaia-platform.de/en/integrations/postgresql
Language: en
Last updated: 2026-10-07

---

Integration · Databases

## PostgreSQL with AI: ask your database questions without writing SQL

How much revenue came from Austria in September, which orders have been stuck in status open for days? Today that means asking someone in IT. AKAIA answers these questions straight from PostgreSQL and changes data only after your approval.

[Get started](https://app.alphos-services.com/register?integration=postgresql) · [Talk to sales](https://akaia-platform.de/en/contact)

14 actions · Starts tasks · Connect with server access

Use cases

### How teams use AKAIA in PostgreSQL

#### Figures without SQL

You ask for revenue by country last quarter. AKAIA looks at the table structure, writes the matching query and summarizes the result. Because queries can also change data, you see the SQL before it runs and approve it.

-   List tables
-   Get table schema
-   Run SQL query
-   Refine query result

#### New row in a query

A task starts as soon as a query you define returns new rows, for example new orders over €5,000. The agent reads the records and summarizes them for your sales team.

-   Get record by key
-   Search records

Actions

### What AKAIA can do in PostgreSQL

The AKAIA PostgreSQL integration gives AI agents, chat and tasks access to 14 PostgreSQL actions: 8 to read and 6 to make changes, plus 1 app events that can start a task. Changes only run after you approve them.

#### Actions that change something

6 actions

-   Run SQL query

    Runs an SQL query against the connected PostgreSQL database, to read or change data.

-   Update record

    Updates a row given a primary key column/value and a JSON object of updated fields.

-   Insert record

    Inserts a new row into a table.

-   Create table

    Creates a new table with the columns you define.

-   Delete record

    Deletes a row given a primary key column and value.

-   Drop table

    Drops an existing table completely.

#### Actions that only read

8 actions

-   List tables

    Lists all tables in the public schema of the connected database.

-   Get table schema

    Gets the schema (column names and types) for a specified table.

-   Search records

    Searches a column of a table for rows that contain a search term.

-   Get record by key

    Fetches a single row using a primary key column name and value.

-   Refine query result

    Filters, sorts or groups a result you already retrieved, without running the query again.

-   Count table rows

    Gets the total number of rows in a specific table.

-   List foreign keys

    Gets all foreign key relationships for a specific table.

-   List indexes

    Retrieves all indexes (including Primary Keys) for a specific table.

PostgreSQL can also be self-hosted. You connect it with the server address, database and credentials. The server must be reachable directly from the internet.

As of October 2026

Tasks

### PostgreSQL in tasks

An agent can get going as soon as something happens in PostgreSQL. Or on a schedule, such as every morning. It handles each event exactly once.

-   New row in query

Whether the agent asks before changing something in PostgreSQL is set per action in the agent. Actions that change data ask first by default.

[More about tasks](https://akaia-platform.de/en/tasks)

Search

### PostgreSQL in chat and agents

AKAIA queries PostgreSQL directly in chat and agents, always on the current version. Enterprise search covers content from 13 synced apps alongside it.

[Company search](https://akaia-platform.de/en/search)

Control

### You stay in control. Every change with your approval.

Before AKAIA changes anything in PostgreSQL, you see a card with the exact values. Edit the text, then allow or decline.

1.  **“Runs directly” or “Asks first”**

    Set it for every PostgreSQL action in the agent.

2.  **Exact values before anything is sent**

    The card shows what would happen in PostgreSQL. Edit the text first.

3.  **Rules from your IT team**

    Admins enable or block every PostgreSQL action, for the organization, a team or a person.

[More about agents](https://akaia-platform.de/en/agents)

Examples

### Ask AKAIA like this

Write what you need. AKAIA picks the right PostgreSQL actions.

-   [PostgreSQL What was revenue by country in Q3, sorted by amount?](https://app.alphos-services.com/register?integration=postgresql)
-   [PostgreSQL Which orders have been in status open for more than seven days?](https://app.alphos-services.com/register?integration=postgresql)
-   [PostgreSQL Search the customers table for entries with abc in the company name.](https://app.alphos-services.com/register?integration=postgresql)
-   [PostgreSQL Set the status of order 10482 to shipped.](https://app.alphos-services.com/register?integration=postgresql)

Setup

### Connect PostgreSQL

You set up the connection in AKAIA under Integrations.

1.  ### Have access ready

    Have your PostgreSQL server's address and credentials ready.

2.  ### Enter it in AKAIA

    Under Integrations, choose PostgreSQL and enter the details. AKAIA checks the connection right away.

3.  ### Set the scope

    Choose whether the connection is for you, your team or the company.

The server must be reachable directly from the internet, not only through a VPN or tunnel.

AKAIA stores credentials encrypted.

### Frequently asked questions about PostgreSQL and AKAIA

[Talk to sales](https://akaia-platform.de/en/contact)

#### What can AKAIA do in PostgreSQL?

AKAIA can read 8 kinds of data in PostgreSQL and make 6 kinds of changes, for example: List tables, Get table schema, Run SQL query. You use the actions in chat, in your own agents and in tasks.

#### Does AKAIA change anything in PostgreSQL without my approval?

No. By default every change in PostgreSQL waits for your approval. You see the exact values first and can edit the text. In the agent you can set single actions to “Runs directly” if you want to.

#### Why does AKAIA ask before running a plain query?

The Run SQL query action can both read and change data. AKAIA therefore treats it as a change, and it waits for your approval by default. You see the SQL first and can edit it. For pure analysis you can set the action to “Runs directly” in the agent.

#### Which database user should I use for AKAIA?

We recommend a dedicated user for AKAIA that only has the tables and rights your agents need. If AKAIA should only analyze data, give that user read rights only.

#### Can I search PostgreSQL with AKAIA?

AKAIA queries PostgreSQL live in chat and agents, always on the current version. PostgreSQL is not added to the enterprise search index.

#### How do I connect PostgreSQL to AKAIA?

Under Integrations, enter your PostgreSQL server's address and credentials. AKAIA checks the connection right away. The server must be reachable from the internet.

Related integrations

### Works well with PostgreSQL

-   **[MariaDB / MySQL](https://akaia-platform.de/en/integrations/mariadb-mysql)**

    Databases

-   **[MongoDB](https://akaia-platform.de/en/integrations/mongodb)**

    Databases

-   **[Microsoft Exchange](https://akaia-platform.de/en/integrations/microsoft-exchange)**

    Microsoft 365

[All integrations](https://akaia-platform.de/en/integrations)

PostgreSQL and all other trademarks are the property of their respective owners.

Next step

### Connect PostgreSQL to AKAIA.

Start with the actions you need and enable more later.

[Get started](https://app.alphos-services.com/register) · [Talk to sales](https://akaia-platform.de/en/contact)

No per-seat fee · From €399 a month
