Integrate Supabase with Release0 to create dynamic, data-driven chatbot interactions using PostgreSQL database management. Learn how to fetch, create, update, and delete records in your agent dialogs.
Example: Store user preferences and retrieve them in future conversations using {{user.preference_id}}
.
This guide explains how to use the Supabase block to interact with your PostgreSQL tables in an Agent Dialog. You can perform full CRUD operations (Create, Read, Update, Delete) on your Supabase tables.
service_role
key (not the anon
key) for full database access:
support_tickets
customer_name
: {{customer_name}}
customer_email
: {{customer_email}}
issue_type
: {{issue_type}}
description
: {{description}}
priority
: {{priority}}
status
: open
{{ticket_data}}
{{table_name}}
support_tickets
id
equals {{ticket_id}}
{{ticket_info}}
support_tickets
id
equals {{ticket_id}}
status
: {{new_status}}
SELECT *
when possible"new row violates row-level security policy for table"
with a 401 Unauthorized status, you need to either:
ALTER TABLE your_table_name DISABLE ROW LEVEL SECURITY;
💡 Want to see this in action? Check out our How to Build Data-Driven Chatbots with Supabase Integration blog post for a real-world example and practical tips.