Latenode

Automate legal processes with specialized AI agents

This template listens on a webhook for a legal question, asks ChatGPT which domain it is (contract, compliance, intellectual property, privacy, governance, or employment), then writes a memo with the matching prompt. JavaScript packages the answer. Supabase stores the request and memo so you can review it later. Point your intake form or chat at the webhook URL. ChatGPT is a Latenode AI step.

Updated Sep 16, 2026Est. run: 1m 33sEst. cost: $0.0059
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns inbound legal questions into stored memos
  • Classifies the domain and writes the memo with ChatGPT
  • Packages fields in JavaScript
  • Saves the request and answer in Supabase

How it works

1
Trigger

Receive the legal question

The scenario starts when your form or chat POSTs the question to the webhook.

2
AI

Classify and write the memo

ChatGPT returns the legal domain and a memo using the prompt for that domain. ChatGPT is a Latenode AI step.

3
Logic

Package the result

JavaScript keeps domain, summary, and memo fields ready for storage.

4
Action

Store in Supabase

Supabase inserts a row with the original question, the domain, and the memo.

Setup guide

1

Add the webhook

Add a webhook trigger and copy the URL into the form or chat that sends legal questions.

2

Wire ChatGPT

Send the question to ChatGPT. Ask for a domain label plus a memo. Use one prompt per domain (contract, compliance, IP, privacy, governance, employment) and pick it in JavaScript from the label ChatGPT returns. ChatGPT is a Latenode AI step.

3

Connect Supabase

Add a Supabase connection. Put the Supabase URL and key on that connection. Choose the table that should receive question, domain, and memo.

4

Insert the row

Map those fields onto a Supabase create-row step. POST a sample question to the webhook and confirm the row.

Requirements

A form or chat that can POST a legal question to the webhook
ChatGPT available as a Latenode AI step
A Supabase table Latenode can insert into, with credentials on the Supabase connection

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.