Skip to content
FlowHubFluxonLab
Supabase
Ecommerce & Ordersfree

Process multiple requests in FIFO using OpenAI Batch API and Supabase/Postgres

by Teng Wei HerrUpdated Aug 2026
RequiresSupabaseSupabasePostgresPostgres
Share Post Share
HRCall Files APIHRCall Batch APIMaStart (mock data)Start (mock dat…IfIf status = completedIf status = com…CoConvert to batch requests in .jsonlConvert to batc…EF.jsonl to base64CoDecode base64HRCall Batch API to retrieve batch objectCall Batch API …HRDownload .jsonl resultDownload .jsonl…ScCron Job (5 mins)Cron Job (5 min…Create a row in batch tableCreate a row in…Get the earliest uncompleted batchGet the earlies…Update statusUpdate status and resultUpdate status a…NOSubmission doneNORetrieval done12345
1/5
FLOWS
STEPS · 5
Run manually by an operator

On manual run, processes queued requests through the OpenAI Batch API and writes results to Supabase and Postgres in FIFO order.

Tags

manualcomplexSupabasePostgresEngineeringAI Summarizationdiscoveredpending-review
Connects
supabaseSupabasepostgresPostgres
CategoryEcommerce & Orders
Triggermanual
Complexitycomplex
Nodes16
AddedJun 27, 2026