Add Postgres Data to an Agentic Workflow
Overview
Once you set up the Postgres integration in Kizen, you can read and write PostgreSQL data directly from Agentic Workflows with the Read Data and Write Data actions.
Before You Begin
To add Postgres data to an Agentic Workflow, you need:
A PostgreSQL connection to Kizen. See Enable Postgres in Kizen for details.
A PostgreSQL user role with the necessary read or write privileges on the target database tables.
Add Postgres data to an Agentic Workflow
To add Postgres data to an Agentic Workflow:
Configure the sources for the script inputs
For each of the fields in the Script Inputs section of the modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The fields are as follows:
Query
String
The SELECT statement to execute.
Yes
Database
String
The name of the target PostgreSQL database.
Yes
Connection Secret Tag
String
The name of the PostgreSQL environment from your integration secret to execute the query on. Configure this source when you have more than one environment in your secret.
Not in a single-environment configuration
Return Single Value
Boolean
Whether you expect to return a single value (true) or multiple values (false).
Yes
Configure the destinations for the script outputs
For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The fields are as follows:
Result
String
Read Data
The result of the query
Yes
Result Status
String
Read Data, Write Data
The status of the write operation
Yes
What's Next
Your Agentic Workflow can now read from or write to your PostgreSQL database. For details on how to fix common technical issues, continue to Troubleshoot Postgres.
Postgres, PostgreSQL, and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada. Kizen's PostgreSQL integration is not affiliated with, sponsored by, or endorsed by the PostgreSQL Community Association of Canada, the PostgreSQL Global Development Group, or the PostgreSQL Project.
Last updated
Was this helpful?




