Saltar al contenido principal

Store collected data directly inside Convoflow collections, connect to your own database, or execute simple JavaScript calculations when you need custom logic.

Database Collections and Code Scripts


1. Internal Collections (Read & Write)

Collections are built-in tables hosted inside Convoflow, eliminating the need to set up external databases.

Collection Write Node

Inserts or updates records in your internal tables.

collectionIdstringrequired

Target collection (e.g. Customers or Surveys).

fieldMappingsobjectrequired

Map collection columns to conversation variables.

Collection Read Node

Fetches records based on filters.

outputVariablestringdefault: found_record

Variable storing the retrieved record.


2. PostgreSQL and Supabase Nodes

Run SQL queries or REST requests against your own infrastructure.

querystringrequired

SQL statement with safe {variable} interpolation.


3. Code Node (Custom JavaScript)

Execute custom calculations or transformations. Variables are accessed via the vars object:

const subtotal = Number(vars.order_subtotal) || 0;
const tax = subtotal * 0.16;
const total = subtotal + tax;

return { subtotal, tax, total };