Supabase Writer
Supabase Writer saves the data it receives from the flow to a table in your Supabase project. Each record it receives is added as a new row, and each field of the record goes to the column with the same name.
If the data has fields the table does not have, the component tries again saving only the fields that match columns of the table.
When to use it
- Saving to your database the contacts that come in from a form.
- Logging every conversation or order the flow processes.
- Storing the data an agent extracts from emails or documents.
Configuration
This component is linked to the Supabase API service. The project address and its key are in your Supabase project settings, in the API section. See Credentials.
| Field | What it does |
|---|---|
| Credential | The Supabase API credential of your project. |
| Project URL | The address of your Supabase project, which the component connects to. |
| API Key | The key of your Supabase project, which the component connects with. |
| Table Name | The name of the table where the records are saved. |
| Records | The records to save. Connect the data you want to add to the table. |
Output
Response returns a list of the records as they were saved in the table, each with its identifier.
Example
A training academy saves its website’s information requests in Supabase:
- A form starts the flow with the name, email and course of interest.
- A data component gives each field the name of its column:
name,emailandcourse. - Supabase Writer, with Table Name
requests, adds the request as a new row.
Good practices
- Name the data fields exactly like the table columns.
- For new flows, Supabase offers more actions on your tables.
Related components
- Supabase: queries, creates, updates and deletes records in Supabase.