WorkatoBuilds, by Workloft ← All builds

Recipe view · 5 Dec 2026

LinkedIn carousel. The recipes.

Source text in, carousel PDF out. One AI call writes the slides; Python enforces the rules; a separate function renders the PDF; the final step returns it.

4recipes
27steps
1AI
2formula / Python
13action
11control

Generated from the recipe JSON, so this is exactly what runs. IDs and workspace details removed. Code on GitHub →

How the recipes connect

API endpoint · POST /linkedin-carousel-v1/carousel

LinkedIn carousel API

POST /carousel {topic, source_text, audience?, handle?}: creates a carousel_runs row, starts LinkedIn carousel async, returns 202 with run_id. Collect with POST /carousel/result.

Inputtopic, source_text, audience, handle
Outputstatus, run_id, message
ConnectionsAPI Platform, Data tables, Recipe functions
#TagStepWhat it does
1ACTIONData table: add row carousel_runsCreate the run row (carousel_runs): run_id = this API job id, status running.
2ACTIONCall recipe function (async) LinkedIn carouselStart LinkedIn carousel asynchronously; it writes the PDF link onto the run row.
3ACTIONReturn HTTP response 202Accepted: return the run id at once (API Platform cuts sync jobs at 30 s).

API endpoint · POST /linkedin-carousel-v1/carousel/result

LinkedIn carousel result API

POST /carousel/result {run_id}: returns the carousel run (status running | done | failed | not_found, pdf_url, checks).

Inputrun_id
Outputstatus, run_id, topic, pdf_url, html_url, pages, checks, error, function_job_id
ConnectionsAPI Platform, Data tables, Python
#TagStepWhat it does
1ACTIONData table: read rows carousel_runsRead the run rows (get_records ignores the column filter, gotcha G05; matched in Python).
2FORMULAPython codepick the row for this run_id, map column ids to names
3ACTIONReturn HTTP response 200Return the run.

Recipe function · called by other recipes

LinkedIn carousel

Source text → LinkedIn carousel PDF. ONE Model Gateway call writes the slides; Python checks guarantee no em-dashes, word limits and no number that is not in the source; Render carousel PDF makes the 1080x1350 PDF. Planned with the Recipe Recipe.

Inputtopic, source_text, audience, handle, run_record_id
Outputstatus, pdf_url, html_url, pages, checks, error_message
ConnectionsData tables, HTTP (Workato AI Gateway), Python, Recipe functions
#TagStepWhat it does
1CONTROLMonitor (try)Monitor the pipeline; on any error record the failure on the run row and fail the job.
2AIHTTP request Model Gateway /v1/chat/completionsone Model Gateway call writes the slides (hook, 6 to 8 content, CTA) as JSON. Source trimmed to 12k chars.
3FORMULAPython codeparse the answer, no em-dashes, word limits, drop any number not in the source, 6 to 8 content slides
4CONTROLIfstop if the checks failed
5CONTROLIf
6ACTIONData table: update row carousel_runsMark the run failed with the check results
7CONTROLStop job (with error)Not enough slides survived the checks: fail the job with the reasons (caught below, written to the run row).
8ACTIONCall recipe function (waits) Render carousel PDFrender the PDF (recipe function Render carousel PDF, which holds the render service connection)
9CONTROLIfstop unless the render says done
10CONTROLIf
11ACTIONData table: update row carousel_runsMark the run failed with the render error
12CONTROLStop job (with error)Render failed: fail the job with the render error.
13CONTROLIf
14ACTIONData table: update row carousel_runsStore the PDF link on the run row (carousel_runs) for the API caller
15ACTIONReturn resultreturn the carousel PDF
16CONTROLOn error
17CONTROLIf
18ACTIONData table: update row carousel_runsMark the run failed with the reason
19CONTROLStop job (with error)End the job as FAILED after recording the error.

Recipe function · called by other recipes

Render carousel PDF

Carousel JSON → render service /carousel-pdf → PDF link. Called by LinkedIn carousel.

Inputcarousel_json
Outputstatus, pdf_url, html_url, pages, error
ConnectionsHTTP (Render service), Recipe functions
#TagStepWhat it does
1ACTIONHTTP request POST /carousel-pdfPOST the checked carousel to the render service /carousel-pdf (weasyprint, 1080x1350 portrait, Workato deck look) and get back the PDF link. Always answers 200 with status done|failed.
2ACTIONReturn resultReturn the PDF link

Data tables