[{"data":1,"prerenderedAt":3697},["ShallowReactive",2],{"docs-navigation":3,"content-query-bj1Yo1eBGE":315},[4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172,175,178,181,184,187,190,193,196,199,202,205,208,211,214,217,220,223,226,229,232,235,238,241,244,247,250,253,256,258,261,264,267,270,273,276,279,282,285,288,291,294,297,300,303,306,309,312],{"_path":5,"title":6},"/docs/account/account-management","Account management",{"_path":8,"title":9},"/docs/account/mfa","Multi-factor authentication (MFA)",{"_path":11,"title":12},"/docs/account/team","Teams and sub-accounts",{"_path":14,"title":15},"/docs/account/billing-and-subscriptions","Billing & subscriptions",{"_path":17,"title":18},"/docs/account/access-tokens","Webhook Relay access tokens: permissions and subscription scopes",{"_path":20,"title":21},"/docs/clawhub","Webhook Relay on ClawHub",{"_path":23,"title":24},"/docs/email","Receive emails as webhooks",{"_path":26,"title":27},"/docs/email/payload","Email webhook payload",{"_path":29,"title":30},"/docs/email/filtering-and-policy","Sender filtering & policy",{"_path":32,"title":33},"/docs/email/cli","Create & poll email addresses from the CLI",{"_path":35,"title":36},"/docs","Getting Started",{"_path":38,"title":39},"/docs/installation/cli","CLI",{"_path":41,"title":42},"/docs/installation/docker","Docker container",{"_path":44,"title":45},"/docs/installation/docker-compose","Docker Compose",{"_path":47,"title":48},"/docs/installation/kubernetes","Kubernetes",{"_path":50,"title":51},"/docs/installation/autostart-windows","Autostart (Windows)",{"_path":53,"title":54},"/docs/installation/autostart-linux","Autostart (Linux)",{"_path":56,"title":57},"/docs/installation/autostart-macos","Autostart (MacOS)",{"_path":59,"title":60},"/docs/installation/behind-proxy","HTTP proxy configuration",{"_path":62,"title":63},"/docs/mcp","MCP Server",{"_path":65,"title":66},"/docs/outbound","Outbound Gateway: send webhooks to your customers",{"_path":68,"title":69},"/docs/outbound/setup","Set up the Outbound Gateway",{"_path":71,"title":72},"/docs/outbound/receiving","Receive and verify outbound webhooks",{"_path":74,"title":75},"/docs/outbound/operating","Monitor, retry and recover deliveries",{"_path":77,"title":78},"/docs/security","Security & Tech",{"_path":80,"title":81},"/docs/service-connections","Service Connections",{"_path":83,"title":84},"/docs/service-connections/ai-providers","AI provider connections",{"_path":86,"title":87},"/docs/service-connections/aws_s3","AWS S3",{"_path":89,"title":90},"/docs/service-connections/aws_sns","AWS SNS",{"_path":92,"title":93},"/docs/service-connections/aws_sqs","AWS SQS",{"_path":95,"title":96},"/docs/service-connections/azure","Azure",{"_path":98,"title":99},"/docs/service-connections/gcp_gcs","GCP Cloud Storage",{"_path":101,"title":102},"/docs/service-connections/gcp_pubsub","GCP Pub/Sub",{"_path":104,"title":105},"/docs/service-connections/secrets","Secrets",{"_path":107,"title":108},"/docs/skills","Agent Skills",{"_path":110,"title":111},"/docs/skills-cli","skills.sh — the Agent Skills CLI",{"_path":113,"title":114},"/docs/tunnels/demoing-your-website","Demoing your website",{"_path":116,"title":117},"/docs/tunnels/regions","Regions",{"_path":119,"title":120},"/docs/tutorials/cicd/jenkins-bitbucket","Jenkins and Bitbucket",{"_path":122,"title":123},"/docs/tutorials/cicd/jenkins-github","Jenkins and GitHub",{"_path":125,"title":126},"/docs/tutorials/cicd/jenkins-plugin","Jenkins Plugin",{"_path":128,"title":129},"/docs/tutorials/cicd/jenkins-plugin-multibranch","Jenkins Multibranch Pipelines",{"_path":131,"title":132},"/docs/tutorials/cicd/kubernetes-operator","Kubernetes Operator",{"_path":134,"title":135},"/docs/tutorials/cicd/terraform-atlantis","Terraform Atlantis",{"_path":137,"title":138},"/docs/tutorials/cicd/webhook-exec","Execute scripts on webhook",{"_path":140,"title":141},"/docs/tutorials/edge/home-assistant","Home Assistant",{"_path":143,"title":144},"/docs/tutorials/edge/javascript-app","JavaScript app",{"_path":146,"title":147},"/docs/tutorials/edge/node-red","Node-RED",{"_path":149,"title":150},"/docs/tutorials/email/airtable","Email to Airtable",{"_path":152,"title":153},"/docs/tutorials/email/api","Email to API",{"_path":155,"title":156},"/docs/tutorials/email/database","Email to Database",{"_path":158,"title":159},"/docs/tutorials/email/discord","Email to Discord",{"_path":161,"title":162},"/docs/tutorials/email/google-sheets","Email to Google Sheets",{"_path":164,"title":165},"/docs/tutorials/email/microsoft-teams","Email to Microsoft Teams",{"_path":167,"title":168},"/docs/tutorials/email/notion","Email to Notion",{"_path":170,"title":171},"/docs/tutorials/email/slack","Email to Slack",{"_path":173,"title":174},"/docs/tutorials","Tutorials",{"_path":176,"title":177},"/docs/tutorials/n8n/email-trigger","n8n Email Trigger (Inbound Email)",{"_path":179,"title":180},"/docs/tutorials/n8n/webhook-trigger","n8n Webhook Trigger (No Public IP)",{"_path":182,"title":183},"/docs/tutorials/n8n/whatsapp-cloud-api-webhook","n8n WhatsApp Cloud API Webhook Setup",{"_path":185,"title":186},"/docs/tutorials/transform/docker-to-slack","DockerHub webhook to Slack notification",{"_path":188,"title":189},"/docs/tutorials/transform/enrich-webhooks","Enrich webhooks from APIs",{"_path":191,"title":192},"/docs/tutorials/transform/stripe-to-plain","Sync Stripe subscriptions to Plain.com tenants",{"_path":194,"title":195},"/docs/tutorials/warehouse/bigquery","GCP BigQuery",{"_path":197,"title":198},"/docs/webhooks/alerts","Alerts",{"_path":200,"title":201},"/docs/webhooks/auth/username-password","Username and password",{"_path":203,"title":204},"/docs/webhooks/auth/hmac","HMAC",{"_path":206,"title":207},"/docs/webhooks/auth/jwt","JWT authentication",{"_path":209,"title":210},"/docs/webhooks/auth/http-method","Auth using request method",{"_path":212,"title":213},"/docs/webhooks/cors","CORS for webhooks",{"_path":215,"title":216},"/docs/webhooks/cron/using-cron-webhooks","Schedule recurring webhooks",{"_path":218,"title":219},"/docs/webhooks/custom-domains","Custom webhook domains",{"_path":221,"title":222},"/docs/webhooks/custom-subdomains","Custom webhook subdomains",{"_path":224,"title":225},"/docs/webhooks/custom-webhook-response","Custom response to webhooks",{"_path":227,"title":228},"/docs/webhooks/durable-webhooks","Durable webhooks: reliable delivery with automatic retries",{"_path":230,"title":231},"/docs/webhooks/functions/manipulating-json","JSON encoding",{"_path":233,"title":234},"/docs/webhooks/functions/make-http-request","Make HTTP request",{"_path":236,"title":237},"/docs/webhooks/functions/modify-request","Modify webhook headers, body, method and path",{"_path":239,"title":240},"/docs/webhooks/functions/multipart-form-data","Multipart form to JSON",{"_path":242,"title":243},"/docs/webhooks/functions/url-encoded-data","URL Encoded Form",{"_path":245,"title":246},"/docs/webhooks/functions/working-with-time","Working with time",{"_path":248,"title":249},"/docs/webhooks/functions/send-emails","Sending emails",{"_path":251,"title":252},"/docs/webhooks/functions/crypto-functions","Base64, encryption",{"_path":254,"title":255},"/docs/webhooks/functions/integrate-into-cicd","Integrating into CI/CD",{"_path":257,"title":195},"/docs/webhooks/functions/big-query",{"_path":259,"title":260},"/docs/webhooks/functions/accessing-metadata","Accessing metadata",{"_path":262,"title":263},"/docs/webhooks/functions/response-functions","Response (post-delivery) functions",{"_path":265,"title":266},"/docs/webhooks/functions/alerting","Alerting from functions",{"_path":268,"title":269},"/docs/webhooks/functions/helper-libraries","Helper libraries",{"_path":271,"title":272},"/docs/webhooks/functions/transform-webhook-payload","Transform a webhook payload",{"_path":274,"title":275},"/docs/webhooks/functions/filter-webhooks","Filter or drop webhooks before forwarding",{"_path":277,"title":278},"/docs/webhooks/functions/provider-helpers","Provider-aware function helpers",{"_path":280,"title":281},"/docs/webhooks/functions","Webhook transformations (functions): modify body, headers, method and path",{"_path":283,"title":284},"/docs/webhooks/internal/localhost","Receive webhooks on localhost with the relay CLI",{"_path":286,"title":287},"/docs/webhooks/large-webhooks","Large Webhooks",{"_path":289,"title":290},"/docs/webhooks/outbound-throttling","Outbound throttling: control webhook delivery speed",{"_path":292,"title":293},"/docs/webhooks/polling-webhooks","Polling webhooks with /v1/events",{"_path":295,"title":296},"/docs/webhooks/public/public-destination","Forward to public URL",{"_path":298,"title":299},"/docs/webhooks/public/multiple-destination-urls","Forward webhooks to multiple destinations",{"_path":301,"title":302},"/docs/webhooks/replay-on-agent-connect","Webhook replay on agent connect: recover missed webhooks",{"_path":304,"title":305},"/docs/webhooks/static-ip-address","Static IP Address",{"_path":307,"title":308},"/docs/webhooks/tls-ssl-errors","Fix TLS/SSL handshake errors: unsupported protocol, wrong version number, handshake failure",{"_path":310,"title":311},"/docs/webhooks/websocket-server","Connecting to websocket server",{"_path":313,"title":314},"/docs/webhooks/zero-retention-buckets","Zero Retention Buckets",{"_path":277,"_dir":316,"_draft":317,"_partial":317,"_locale":318,"title":278,"description":319,"intro":320,"type":321,"layout":322,"tags":323,"body":327,"_type":3690,"_id":3691,"_source":3692,"_file":3693,"_stem":3694,"_extension":3695,"sitemap":3696},"functions",false,"","Build Slack, Discord, Telegram, Notion, Airtable, Google Sheets and Supabase requests, or enrich webhooks with managed or customer-provided AI.","Provider-aware helpers turn webhook data into provider payloads while durable outputs remain responsible for writes.","example","doc",[324,325,326],"Functions","Webhook Forwarding","Integrations",{"type":328,"children":329,"toc":3674},"root",[330,346,365,372,385,547,568,574,586,731,737,750,900,906,911,1074,1080,1093,1256,1274,1287,1293,1314,1591,1627,1633,1652,1881,1887,1922,2134,2147,2153,2172,2519,2531,2537,2548,2769,2782,2788,2815,3024,3037,3043,3061,3335,3356,3362,3367,3614,3627,3633,3668],{"type":331,"tag":332,"props":333,"children":334},"element","p",{},[335,338,344],{"type":336,"value":337},"text","Provider-aware helpers remove repetitive payload mapping from Functions. With\none exception, they are pure builders: they return a body or request descriptor\nand never contact the destination. Apply that result to an output so retries,\ndelivery logs, throttling and ",{"type":331,"tag":339,"props":340,"children":341},"a",{"href":262},[342],{"type":336,"value":343},"response functions",{"type":336,"value":345},"\ncontinue to work.",{"type":331,"tag":332,"props":347,"children":348},{},[349,356,358,363],{"type":331,"tag":350,"props":351,"children":353},"code",{"className":352},[],[354],{"type":336,"value":355},"ai.generate()",{"type":336,"value":357}," is the exception. It performs a bounded synchronous enrichment\nrequest through a typed ",{"type":331,"tag":339,"props":359,"children":360},{"href":83},[361],{"type":336,"value":362},"AI provider connection",{"type":336,"value":364},".",{"type":331,"tag":366,"props":367,"children":369},"h2",{"id":368},"webhook-relay-ai",[370],{"type":336,"value":371},"Webhook Relay AI",{"type":331,"tag":332,"props":373,"children":374},{},[375,377,383],{"type":336,"value":376},"Create a Webhook Relay AI connection and bind it to ",{"type":331,"tag":350,"props":378,"children":380},{"className":379},[],[381],{"type":336,"value":382},"ai:writer",{"type":336,"value":384},". It needs no\nAPI key, selects the model for you, and shares the account agent's monthly AI\ntoken allowance:",{"type":331,"tag":386,"props":387,"children":391},"pre",{"className":388,"code":389,"language":390,"meta":318,"style":318},"language-javascript shiki shiki-themes github-dark","const ai = require(\"ai:writer\")\nconst result = ai.generate(\"Summarize: \" + r.body, {\n  maxTokens: 200\n})\nr.setBody(JSON.stringify({ summary: result.text, usage: result.usage }))\n","javascript",[392],{"type":331,"tag":350,"props":393,"children":394},{"__ignoreMap":318},[395,441,487,501,510],{"type":331,"tag":396,"props":397,"children":400},"span",{"class":398,"line":399},"line",1,[401,407,413,418,424,430,436],{"type":331,"tag":396,"props":402,"children":404},{"style":403},"--shiki-default:#F97583",[405],{"type":336,"value":406},"const",{"type":331,"tag":396,"props":408,"children":410},{"style":409},"--shiki-default:#79B8FF",[411],{"type":336,"value":412}," ai",{"type":331,"tag":396,"props":414,"children":415},{"style":403},[416],{"type":336,"value":417}," =",{"type":331,"tag":396,"props":419,"children":421},{"style":420},"--shiki-default:#B392F0",[422],{"type":336,"value":423}," require",{"type":331,"tag":396,"props":425,"children":427},{"style":426},"--shiki-default:#E1E4E8",[428],{"type":336,"value":429},"(",{"type":331,"tag":396,"props":431,"children":433},{"style":432},"--shiki-default:#9ECBFF",[434],{"type":336,"value":435},"\"ai:writer\"",{"type":331,"tag":396,"props":437,"children":438},{"style":426},[439],{"type":336,"value":440},")\n",{"type":331,"tag":396,"props":442,"children":444},{"class":398,"line":443},2,[445,449,454,458,463,468,472,477,482],{"type":331,"tag":396,"props":446,"children":447},{"style":403},[448],{"type":336,"value":406},{"type":331,"tag":396,"props":450,"children":451},{"style":409},[452],{"type":336,"value":453}," result",{"type":331,"tag":396,"props":455,"children":456},{"style":403},[457],{"type":336,"value":417},{"type":331,"tag":396,"props":459,"children":460},{"style":426},[461],{"type":336,"value":462}," ai.",{"type":331,"tag":396,"props":464,"children":465},{"style":420},[466],{"type":336,"value":467},"generate",{"type":331,"tag":396,"props":469,"children":470},{"style":426},[471],{"type":336,"value":429},{"type":331,"tag":396,"props":473,"children":474},{"style":432},[475],{"type":336,"value":476},"\"Summarize: \"",{"type":331,"tag":396,"props":478,"children":479},{"style":403},[480],{"type":336,"value":481}," +",{"type":331,"tag":396,"props":483,"children":484},{"style":426},[485],{"type":336,"value":486}," r.body, {\n",{"type":331,"tag":396,"props":488,"children":490},{"class":398,"line":489},3,[491,496],{"type":331,"tag":396,"props":492,"children":493},{"style":426},[494],{"type":336,"value":495},"  maxTokens: ",{"type":331,"tag":396,"props":497,"children":498},{"style":409},[499],{"type":336,"value":500},"200\n",{"type":331,"tag":396,"props":502,"children":504},{"class":398,"line":503},4,[505],{"type":331,"tag":396,"props":506,"children":507},{"style":426},[508],{"type":336,"value":509},"})\n",{"type":331,"tag":396,"props":511,"children":513},{"class":398,"line":512},5,[514,519,524,528,533,537,542],{"type":331,"tag":396,"props":515,"children":516},{"style":426},[517],{"type":336,"value":518},"r.",{"type":331,"tag":396,"props":520,"children":521},{"style":420},[522],{"type":336,"value":523},"setBody",{"type":331,"tag":396,"props":525,"children":526},{"style":426},[527],{"type":336,"value":429},{"type":331,"tag":396,"props":529,"children":530},{"style":409},[531],{"type":336,"value":532},"JSON",{"type":331,"tag":396,"props":534,"children":535},{"style":426},[536],{"type":336,"value":364},{"type":331,"tag":396,"props":538,"children":539},{"style":420},[540],{"type":336,"value":541},"stringify",{"type":331,"tag":396,"props":543,"children":544},{"style":426},[545],{"type":336,"value":546},"({ summary: result.text, usage: result.usage }))\n",{"type":331,"tag":332,"props":548,"children":549},{},[550,552,558,560,566],{"type":336,"value":551},"Do not pass ",{"type":331,"tag":350,"props":553,"children":555},{"className":554},[],[556],{"type":336,"value":557},"model",{"type":336,"value":559}," or ",{"type":331,"tag":350,"props":561,"children":563},{"className":562},[],[564],{"type":336,"value":565},"temperature",{"type":336,"value":567}," for Webhook Relay AI. The platform manages\nthose settings.",{"type":331,"tag":366,"props":569,"children":571},{"id":570},"openai",[572],{"type":336,"value":573},"OpenAI",{"type":331,"tag":332,"props":575,"children":576},{},[577,579,584],{"type":336,"value":578},"Create an OpenAI service connection and bind it to ",{"type":331,"tag":350,"props":580,"children":582},{"className":581},[],[583],{"type":336,"value":382},{"type":336,"value":585},":",{"type":331,"tag":386,"props":587,"children":589},{"className":388,"code":588,"language":390,"meta":318,"style":318},"const ai = require(\"ai:writer\")\nconst result = ai.generate(\"Summarize: \" + r.body, {\n  model: \"gpt-5-mini\",\n  maxTokens: 200\n})\nr.setBody(JSON.stringify({ summary: result.text, usage: result.usage }))\n",[590],{"type":331,"tag":350,"props":591,"children":592},{"__ignoreMap":318},[593,624,663,681,692,699],{"type":331,"tag":396,"props":594,"children":595},{"class":398,"line":399},[596,600,604,608,612,616,620],{"type":331,"tag":396,"props":597,"children":598},{"style":403},[599],{"type":336,"value":406},{"type":331,"tag":396,"props":601,"children":602},{"style":409},[603],{"type":336,"value":412},{"type":331,"tag":396,"props":605,"children":606},{"style":403},[607],{"type":336,"value":417},{"type":331,"tag":396,"props":609,"children":610},{"style":420},[611],{"type":336,"value":423},{"type":331,"tag":396,"props":613,"children":614},{"style":426},[615],{"type":336,"value":429},{"type":331,"tag":396,"props":617,"children":618},{"style":432},[619],{"type":336,"value":435},{"type":331,"tag":396,"props":621,"children":622},{"style":426},[623],{"type":336,"value":440},{"type":331,"tag":396,"props":625,"children":626},{"class":398,"line":443},[627,631,635,639,643,647,651,655,659],{"type":331,"tag":396,"props":628,"children":629},{"style":403},[630],{"type":336,"value":406},{"type":331,"tag":396,"props":632,"children":633},{"style":409},[634],{"type":336,"value":453},{"type":331,"tag":396,"props":636,"children":637},{"style":403},[638],{"type":336,"value":417},{"type":331,"tag":396,"props":640,"children":641},{"style":426},[642],{"type":336,"value":462},{"type":331,"tag":396,"props":644,"children":645},{"style":420},[646],{"type":336,"value":467},{"type":331,"tag":396,"props":648,"children":649},{"style":426},[650],{"type":336,"value":429},{"type":331,"tag":396,"props":652,"children":653},{"style":432},[654],{"type":336,"value":476},{"type":331,"tag":396,"props":656,"children":657},{"style":403},[658],{"type":336,"value":481},{"type":331,"tag":396,"props":660,"children":661},{"style":426},[662],{"type":336,"value":486},{"type":331,"tag":396,"props":664,"children":665},{"class":398,"line":489},[666,671,676],{"type":331,"tag":396,"props":667,"children":668},{"style":426},[669],{"type":336,"value":670},"  model: ",{"type":331,"tag":396,"props":672,"children":673},{"style":432},[674],{"type":336,"value":675},"\"gpt-5-mini\"",{"type":331,"tag":396,"props":677,"children":678},{"style":426},[679],{"type":336,"value":680},",\n",{"type":331,"tag":396,"props":682,"children":683},{"class":398,"line":503},[684,688],{"type":331,"tag":396,"props":685,"children":686},{"style":426},[687],{"type":336,"value":495},{"type":331,"tag":396,"props":689,"children":690},{"style":409},[691],{"type":336,"value":500},{"type":331,"tag":396,"props":693,"children":694},{"class":398,"line":512},[695],{"type":331,"tag":396,"props":696,"children":697},{"style":426},[698],{"type":336,"value":509},{"type":331,"tag":396,"props":700,"children":702},{"class":398,"line":701},6,[703,707,711,715,719,723,727],{"type":331,"tag":396,"props":704,"children":705},{"style":426},[706],{"type":336,"value":518},{"type":331,"tag":396,"props":708,"children":709},{"style":420},[710],{"type":336,"value":523},{"type":331,"tag":396,"props":712,"children":713},{"style":426},[714],{"type":336,"value":429},{"type":331,"tag":396,"props":716,"children":717},{"style":409},[718],{"type":336,"value":532},{"type":331,"tag":396,"props":720,"children":721},{"style":426},[722],{"type":336,"value":364},{"type":331,"tag":396,"props":724,"children":725},{"style":420},[726],{"type":336,"value":541},{"type":331,"tag":396,"props":728,"children":729},{"style":426},[730],{"type":336,"value":546},{"type":331,"tag":366,"props":732,"children":734},{"id":733},"google-gemini",[735],{"type":336,"value":736},"Google Gemini",{"type":331,"tag":332,"props":738,"children":739},{},[740,742,748],{"type":336,"value":741},"The same helper uses Gemini's ",{"type":331,"tag":350,"props":743,"children":745},{"className":744},[],[746],{"type":336,"value":747},"generateContent",{"type":336,"value":749}," API when the alias is bound to\na Gemini connection:",{"type":331,"tag":386,"props":751,"children":753},{"className":388,"code":752,"language":390,"meta":318,"style":318},"const ai = require(\"ai:gemini\")\nconst result = ai.generate(\"Extract the customer intent from: \" + r.body, {\n  model: \"gemini-2.5-flash\",\n  maxTokens: 100\n})\nr.setHeader(\"X-Customer-Intent\", result.text.trim())\n",[754],{"type":331,"tag":350,"props":755,"children":756},{"__ignoreMap":318},[757,789,829,845,857,864],{"type":331,"tag":396,"props":758,"children":759},{"class":398,"line":399},[760,764,768,772,776,780,785],{"type":331,"tag":396,"props":761,"children":762},{"style":403},[763],{"type":336,"value":406},{"type":331,"tag":396,"props":765,"children":766},{"style":409},[767],{"type":336,"value":412},{"type":331,"tag":396,"props":769,"children":770},{"style":403},[771],{"type":336,"value":417},{"type":331,"tag":396,"props":773,"children":774},{"style":420},[775],{"type":336,"value":423},{"type":331,"tag":396,"props":777,"children":778},{"style":426},[779],{"type":336,"value":429},{"type":331,"tag":396,"props":781,"children":782},{"style":432},[783],{"type":336,"value":784},"\"ai:gemini\"",{"type":331,"tag":396,"props":786,"children":787},{"style":426},[788],{"type":336,"value":440},{"type":331,"tag":396,"props":790,"children":791},{"class":398,"line":443},[792,796,800,804,808,812,816,821,825],{"type":331,"tag":396,"props":793,"children":794},{"style":403},[795],{"type":336,"value":406},{"type":331,"tag":396,"props":797,"children":798},{"style":409},[799],{"type":336,"value":453},{"type":331,"tag":396,"props":801,"children":802},{"style":403},[803],{"type":336,"value":417},{"type":331,"tag":396,"props":805,"children":806},{"style":426},[807],{"type":336,"value":462},{"type":331,"tag":396,"props":809,"children":810},{"style":420},[811],{"type":336,"value":467},{"type":331,"tag":396,"props":813,"children":814},{"style":426},[815],{"type":336,"value":429},{"type":331,"tag":396,"props":817,"children":818},{"style":432},[819],{"type":336,"value":820},"\"Extract the customer intent from: \"",{"type":331,"tag":396,"props":822,"children":823},{"style":403},[824],{"type":336,"value":481},{"type":331,"tag":396,"props":826,"children":827},{"style":426},[828],{"type":336,"value":486},{"type":331,"tag":396,"props":830,"children":831},{"class":398,"line":489},[832,836,841],{"type":331,"tag":396,"props":833,"children":834},{"style":426},[835],{"type":336,"value":670},{"type":331,"tag":396,"props":837,"children":838},{"style":432},[839],{"type":336,"value":840},"\"gemini-2.5-flash\"",{"type":331,"tag":396,"props":842,"children":843},{"style":426},[844],{"type":336,"value":680},{"type":331,"tag":396,"props":846,"children":847},{"class":398,"line":503},[848,852],{"type":331,"tag":396,"props":849,"children":850},{"style":426},[851],{"type":336,"value":495},{"type":331,"tag":396,"props":853,"children":854},{"style":409},[855],{"type":336,"value":856},"100\n",{"type":331,"tag":396,"props":858,"children":859},{"class":398,"line":512},[860],{"type":331,"tag":396,"props":861,"children":862},{"style":426},[863],{"type":336,"value":509},{"type":331,"tag":396,"props":865,"children":866},{"class":398,"line":701},[867,871,876,880,885,890,895],{"type":331,"tag":396,"props":868,"children":869},{"style":426},[870],{"type":336,"value":518},{"type":331,"tag":396,"props":872,"children":873},{"style":420},[874],{"type":336,"value":875},"setHeader",{"type":331,"tag":396,"props":877,"children":878},{"style":426},[879],{"type":336,"value":429},{"type":331,"tag":396,"props":881,"children":882},{"style":432},[883],{"type":336,"value":884},"\"X-Customer-Intent\"",{"type":331,"tag":396,"props":886,"children":887},{"style":426},[888],{"type":336,"value":889},", result.text.",{"type":331,"tag":396,"props":891,"children":892},{"style":420},[893],{"type":336,"value":894},"trim",{"type":331,"tag":396,"props":896,"children":897},{"style":426},[898],{"type":336,"value":899},"())\n",{"type":331,"tag":366,"props":901,"children":903},{"id":902},"anthropic",[904],{"type":336,"value":905},"Anthropic",{"type":331,"tag":332,"props":907,"children":908},{},[909],{"type":336,"value":910},"Bind the alias to an Anthropic connection and supply an Anthropic model name:",{"type":331,"tag":386,"props":912,"children":914},{"className":388,"code":913,"language":390,"meta":318,"style":318},"const ai = require(\"ai:reviewer\")\nconst result = ai.generate(\"Review this event for anomalies: \" + r.body, {\n  model: \"claude-haiku-4-5\",\n  system: \"Be concise.\",\n  maxTokens: 200\n})\nr.setBody(JSON.stringify({ review: result.text }))\n",[915],{"type":331,"tag":350,"props":916,"children":917},{"__ignoreMap":318},[918,950,990,1006,1023,1034,1041],{"type":331,"tag":396,"props":919,"children":920},{"class":398,"line":399},[921,925,929,933,937,941,946],{"type":331,"tag":396,"props":922,"children":923},{"style":403},[924],{"type":336,"value":406},{"type":331,"tag":396,"props":926,"children":927},{"style":409},[928],{"type":336,"value":412},{"type":331,"tag":396,"props":930,"children":931},{"style":403},[932],{"type":336,"value":417},{"type":331,"tag":396,"props":934,"children":935},{"style":420},[936],{"type":336,"value":423},{"type":331,"tag":396,"props":938,"children":939},{"style":426},[940],{"type":336,"value":429},{"type":331,"tag":396,"props":942,"children":943},{"style":432},[944],{"type":336,"value":945},"\"ai:reviewer\"",{"type":331,"tag":396,"props":947,"children":948},{"style":426},[949],{"type":336,"value":440},{"type":331,"tag":396,"props":951,"children":952},{"class":398,"line":443},[953,957,961,965,969,973,977,982,986],{"type":331,"tag":396,"props":954,"children":955},{"style":403},[956],{"type":336,"value":406},{"type":331,"tag":396,"props":958,"children":959},{"style":409},[960],{"type":336,"value":453},{"type":331,"tag":396,"props":962,"children":963},{"style":403},[964],{"type":336,"value":417},{"type":331,"tag":396,"props":966,"children":967},{"style":426},[968],{"type":336,"value":462},{"type":331,"tag":396,"props":970,"children":971},{"style":420},[972],{"type":336,"value":467},{"type":331,"tag":396,"props":974,"children":975},{"style":426},[976],{"type":336,"value":429},{"type":331,"tag":396,"props":978,"children":979},{"style":432},[980],{"type":336,"value":981},"\"Review this event for anomalies: \"",{"type":331,"tag":396,"props":983,"children":984},{"style":403},[985],{"type":336,"value":481},{"type":331,"tag":396,"props":987,"children":988},{"style":426},[989],{"type":336,"value":486},{"type":331,"tag":396,"props":991,"children":992},{"class":398,"line":489},[993,997,1002],{"type":331,"tag":396,"props":994,"children":995},{"style":426},[996],{"type":336,"value":670},{"type":331,"tag":396,"props":998,"children":999},{"style":432},[1000],{"type":336,"value":1001},"\"claude-haiku-4-5\"",{"type":331,"tag":396,"props":1003,"children":1004},{"style":426},[1005],{"type":336,"value":680},{"type":331,"tag":396,"props":1007,"children":1008},{"class":398,"line":503},[1009,1014,1019],{"type":331,"tag":396,"props":1010,"children":1011},{"style":426},[1012],{"type":336,"value":1013},"  system: ",{"type":331,"tag":396,"props":1015,"children":1016},{"style":432},[1017],{"type":336,"value":1018},"\"Be concise.\"",{"type":331,"tag":396,"props":1020,"children":1021},{"style":426},[1022],{"type":336,"value":680},{"type":331,"tag":396,"props":1024,"children":1025},{"class":398,"line":512},[1026,1030],{"type":331,"tag":396,"props":1027,"children":1028},{"style":426},[1029],{"type":336,"value":495},{"type":331,"tag":396,"props":1031,"children":1032},{"style":409},[1033],{"type":336,"value":500},{"type":331,"tag":396,"props":1035,"children":1036},{"class":398,"line":701},[1037],{"type":331,"tag":396,"props":1038,"children":1039},{"style":426},[1040],{"type":336,"value":509},{"type":331,"tag":396,"props":1042,"children":1044},{"class":398,"line":1043},7,[1045,1049,1053,1057,1061,1065,1069],{"type":331,"tag":396,"props":1046,"children":1047},{"style":426},[1048],{"type":336,"value":518},{"type":331,"tag":396,"props":1050,"children":1051},{"style":420},[1052],{"type":336,"value":523},{"type":331,"tag":396,"props":1054,"children":1055},{"style":426},[1056],{"type":336,"value":429},{"type":331,"tag":396,"props":1058,"children":1059},{"style":409},[1060],{"type":336,"value":532},{"type":331,"tag":396,"props":1062,"children":1063},{"style":426},[1064],{"type":336,"value":364},{"type":331,"tag":396,"props":1066,"children":1067},{"style":420},[1068],{"type":336,"value":541},{"type":331,"tag":396,"props":1070,"children":1071},{"style":426},[1072],{"type":336,"value":1073},"({ review: result.text }))\n",{"type":331,"tag":366,"props":1075,"children":1077},{"id":1076},"custom-chat-completions-api",[1078],{"type":336,"value":1079},"Custom Chat Completions API",{"type":331,"tag":332,"props":1081,"children":1082},{},[1083,1085,1091],{"type":336,"value":1084},"A custom connection requires an HTTPS base URL whose API implements OpenAI's\n",{"type":331,"tag":350,"props":1086,"children":1088},{"className":1087},[],[1089],{"type":336,"value":1090},"POST /chat/completions",{"type":336,"value":1092}," request and response shape:",{"type":331,"tag":386,"props":1094,"children":1096},{"className":388,"code":1095,"language":390,"meta":318,"style":318},"const ai = require(\"ai:private-model\")\nconst result = ai.generate(\"Label this event: \" + r.body, {\n  model: \"company-classifier-v2\",\n  maxTokens: 32,\n  timeoutMs: 5000\n})\nr.setHeader(\"X-Label\", result.text.trim())\n",[1097],{"type":331,"tag":350,"props":1098,"children":1099},{"__ignoreMap":318},[1100,1132,1172,1188,1204,1217,1224],{"type":331,"tag":396,"props":1101,"children":1102},{"class":398,"line":399},[1103,1107,1111,1115,1119,1123,1128],{"type":331,"tag":396,"props":1104,"children":1105},{"style":403},[1106],{"type":336,"value":406},{"type":331,"tag":396,"props":1108,"children":1109},{"style":409},[1110],{"type":336,"value":412},{"type":331,"tag":396,"props":1112,"children":1113},{"style":403},[1114],{"type":336,"value":417},{"type":331,"tag":396,"props":1116,"children":1117},{"style":420},[1118],{"type":336,"value":423},{"type":331,"tag":396,"props":1120,"children":1121},{"style":426},[1122],{"type":336,"value":429},{"type":331,"tag":396,"props":1124,"children":1125},{"style":432},[1126],{"type":336,"value":1127},"\"ai:private-model\"",{"type":331,"tag":396,"props":1129,"children":1130},{"style":426},[1131],{"type":336,"value":440},{"type":331,"tag":396,"props":1133,"children":1134},{"class":398,"line":443},[1135,1139,1143,1147,1151,1155,1159,1164,1168],{"type":331,"tag":396,"props":1136,"children":1137},{"style":403},[1138],{"type":336,"value":406},{"type":331,"tag":396,"props":1140,"children":1141},{"style":409},[1142],{"type":336,"value":453},{"type":331,"tag":396,"props":1144,"children":1145},{"style":403},[1146],{"type":336,"value":417},{"type":331,"tag":396,"props":1148,"children":1149},{"style":426},[1150],{"type":336,"value":462},{"type":331,"tag":396,"props":1152,"children":1153},{"style":420},[1154],{"type":336,"value":467},{"type":331,"tag":396,"props":1156,"children":1157},{"style":426},[1158],{"type":336,"value":429},{"type":331,"tag":396,"props":1160,"children":1161},{"style":432},[1162],{"type":336,"value":1163},"\"Label this event: \"",{"type":331,"tag":396,"props":1165,"children":1166},{"style":403},[1167],{"type":336,"value":481},{"type":331,"tag":396,"props":1169,"children":1170},{"style":426},[1171],{"type":336,"value":486},{"type":331,"tag":396,"props":1173,"children":1174},{"class":398,"line":489},[1175,1179,1184],{"type":331,"tag":396,"props":1176,"children":1177},{"style":426},[1178],{"type":336,"value":670},{"type":331,"tag":396,"props":1180,"children":1181},{"style":432},[1182],{"type":336,"value":1183},"\"company-classifier-v2\"",{"type":331,"tag":396,"props":1185,"children":1186},{"style":426},[1187],{"type":336,"value":680},{"type":331,"tag":396,"props":1189,"children":1190},{"class":398,"line":503},[1191,1195,1200],{"type":331,"tag":396,"props":1192,"children":1193},{"style":426},[1194],{"type":336,"value":495},{"type":331,"tag":396,"props":1196,"children":1197},{"style":409},[1198],{"type":336,"value":1199},"32",{"type":331,"tag":396,"props":1201,"children":1202},{"style":426},[1203],{"type":336,"value":680},{"type":331,"tag":396,"props":1205,"children":1206},{"class":398,"line":512},[1207,1212],{"type":331,"tag":396,"props":1208,"children":1209},{"style":426},[1210],{"type":336,"value":1211},"  timeoutMs: ",{"type":331,"tag":396,"props":1213,"children":1214},{"style":409},[1215],{"type":336,"value":1216},"5000\n",{"type":331,"tag":396,"props":1218,"children":1219},{"class":398,"line":701},[1220],{"type":331,"tag":396,"props":1221,"children":1222},{"style":426},[1223],{"type":336,"value":509},{"type":331,"tag":396,"props":1225,"children":1226},{"class":398,"line":1043},[1227,1231,1235,1239,1244,1248,1252],{"type":331,"tag":396,"props":1228,"children":1229},{"style":426},[1230],{"type":336,"value":518},{"type":331,"tag":396,"props":1232,"children":1233},{"style":420},[1234],{"type":336,"value":875},{"type":331,"tag":396,"props":1236,"children":1237},{"style":426},[1238],{"type":336,"value":429},{"type":331,"tag":396,"props":1240,"children":1241},{"style":432},[1242],{"type":336,"value":1243},"\"X-Label\"",{"type":331,"tag":396,"props":1245,"children":1246},{"style":426},[1247],{"type":336,"value":889},{"type":331,"tag":396,"props":1249,"children":1250},{"style":420},[1251],{"type":336,"value":894},{"type":331,"tag":396,"props":1253,"children":1254},{"style":426},[1255],{"type":336,"value":899},{"type":331,"tag":332,"props":1257,"children":1258},{},[1259,1261,1266,1268,1272],{"type":336,"value":1260},"API keys for all four customer-provided AI backends stay in the host runtime. Function code can\ncall ",{"type":331,"tag":350,"props":1262,"children":1264},{"className":1263},[],[1265],{"type":336,"value":467},{"type":336,"value":1267}," but cannot read the key. See ",{"type":331,"tag":339,"props":1269,"children":1270},{"href":83},[1271],{"type":336,"value":84},{"type":336,"value":1273},"\nfor setup, structured JSON output and limits.",{"type":331,"tag":332,"props":1275,"children":1276},{},[1277,1279,1285],{"type":336,"value":1278},"If the alias is missing, the account agent links you to the Function's\n",{"type":331,"tag":1280,"props":1281,"children":1282},"strong",{},[1283],{"type":336,"value":1284},"Connections",{"type":336,"value":1286}," tab. Webhook Relay AI can be created there without credentials;\nenter customer-provider credentials only in the write-only Service Connections\ndialog, never in agent chat.",{"type":331,"tag":366,"props":1288,"children":1290},{"id":1289},"slack",[1291],{"type":336,"value":1292},"Slack",{"type":331,"tag":332,"props":1294,"children":1295},{},[1296,1298,1304,1306,1312],{"type":336,"value":1297},"Use ",{"type":331,"tag":350,"props":1299,"children":1301},{"className":1300},[],[1302],{"type":336,"value":1303},"slack.message()",{"type":336,"value":1305}," for text or ",{"type":331,"tag":350,"props":1307,"children":1309},{"className":1308},[],[1310],{"type":336,"value":1311},"slack.blocks()",{"type":336,"value":1313}," for Block Kit. Configure a\nstandard public output with the Slack incoming webhook URL as its destination;\nthe helper only builds its JSON body. This is distinct from the preformatted\nSlack notification output, which wraps arbitrary webhook bodies for you.",{"type":331,"tag":386,"props":1315,"children":1317},{"className":388,"code":1316,"language":390,"meta":318,"style":318},"const slack = require(\"slack\")\nconst event = JSON.parse(r.body)\n\nconst body = slack.blocks([\n  { type: \"section\", text: { type: \"mrkdwn\", text: \"*Deploy complete*\" } },\n  { type: \"context\", elements: [{ type: \"mrkdwn\", text: event.version }] }\n], { text: \"Deploy complete: \" + event.version })\n\nr.setBody(JSON.stringify(body))\nr.setHeader(\"Content-Type\", \"application/json\")\n",[1318],{"type":331,"tag":350,"props":1319,"children":1320},{"__ignoreMap":318},[1321,1354,1389,1398,1429,1467,1493,1515,1523,1556],{"type":331,"tag":396,"props":1322,"children":1323},{"class":398,"line":399},[1324,1328,1333,1337,1341,1345,1350],{"type":331,"tag":396,"props":1325,"children":1326},{"style":403},[1327],{"type":336,"value":406},{"type":331,"tag":396,"props":1329,"children":1330},{"style":409},[1331],{"type":336,"value":1332}," slack",{"type":331,"tag":396,"props":1334,"children":1335},{"style":403},[1336],{"type":336,"value":417},{"type":331,"tag":396,"props":1338,"children":1339},{"style":420},[1340],{"type":336,"value":423},{"type":331,"tag":396,"props":1342,"children":1343},{"style":426},[1344],{"type":336,"value":429},{"type":331,"tag":396,"props":1346,"children":1347},{"style":432},[1348],{"type":336,"value":1349},"\"slack\"",{"type":331,"tag":396,"props":1351,"children":1352},{"style":426},[1353],{"type":336,"value":440},{"type":331,"tag":396,"props":1355,"children":1356},{"class":398,"line":443},[1357,1361,1366,1370,1375,1379,1384],{"type":331,"tag":396,"props":1358,"children":1359},{"style":403},[1360],{"type":336,"value":406},{"type":331,"tag":396,"props":1362,"children":1363},{"style":409},[1364],{"type":336,"value":1365}," event",{"type":331,"tag":396,"props":1367,"children":1368},{"style":403},[1369],{"type":336,"value":417},{"type":331,"tag":396,"props":1371,"children":1372},{"style":409},[1373],{"type":336,"value":1374}," JSON",{"type":331,"tag":396,"props":1376,"children":1377},{"style":426},[1378],{"type":336,"value":364},{"type":331,"tag":396,"props":1380,"children":1381},{"style":420},[1382],{"type":336,"value":1383},"parse",{"type":331,"tag":396,"props":1385,"children":1386},{"style":426},[1387],{"type":336,"value":1388},"(r.body)\n",{"type":331,"tag":396,"props":1390,"children":1391},{"class":398,"line":489},[1392],{"type":331,"tag":396,"props":1393,"children":1395},{"emptyLinePlaceholder":1394},true,[1396],{"type":336,"value":1397},"\n",{"type":331,"tag":396,"props":1399,"children":1400},{"class":398,"line":503},[1401,1405,1410,1414,1419,1424],{"type":331,"tag":396,"props":1402,"children":1403},{"style":403},[1404],{"type":336,"value":406},{"type":331,"tag":396,"props":1406,"children":1407},{"style":409},[1408],{"type":336,"value":1409}," body",{"type":331,"tag":396,"props":1411,"children":1412},{"style":403},[1413],{"type":336,"value":417},{"type":331,"tag":396,"props":1415,"children":1416},{"style":426},[1417],{"type":336,"value":1418}," slack.",{"type":331,"tag":396,"props":1420,"children":1421},{"style":420},[1422],{"type":336,"value":1423},"blocks",{"type":331,"tag":396,"props":1425,"children":1426},{"style":426},[1427],{"type":336,"value":1428},"([\n",{"type":331,"tag":396,"props":1430,"children":1431},{"class":398,"line":512},[1432,1437,1442,1447,1452,1457,1462],{"type":331,"tag":396,"props":1433,"children":1434},{"style":426},[1435],{"type":336,"value":1436},"  { type: ",{"type":331,"tag":396,"props":1438,"children":1439},{"style":432},[1440],{"type":336,"value":1441},"\"section\"",{"type":331,"tag":396,"props":1443,"children":1444},{"style":426},[1445],{"type":336,"value":1446},", text: { type: ",{"type":331,"tag":396,"props":1448,"children":1449},{"style":432},[1450],{"type":336,"value":1451},"\"mrkdwn\"",{"type":331,"tag":396,"props":1453,"children":1454},{"style":426},[1455],{"type":336,"value":1456},", text: ",{"type":331,"tag":396,"props":1458,"children":1459},{"style":432},[1460],{"type":336,"value":1461},"\"*Deploy complete*\"",{"type":331,"tag":396,"props":1463,"children":1464},{"style":426},[1465],{"type":336,"value":1466}," } },\n",{"type":331,"tag":396,"props":1468,"children":1469},{"class":398,"line":701},[1470,1474,1479,1484,1488],{"type":331,"tag":396,"props":1471,"children":1472},{"style":426},[1473],{"type":336,"value":1436},{"type":331,"tag":396,"props":1475,"children":1476},{"style":432},[1477],{"type":336,"value":1478},"\"context\"",{"type":331,"tag":396,"props":1480,"children":1481},{"style":426},[1482],{"type":336,"value":1483},", elements: [{ type: ",{"type":331,"tag":396,"props":1485,"children":1486},{"style":432},[1487],{"type":336,"value":1451},{"type":331,"tag":396,"props":1489,"children":1490},{"style":426},[1491],{"type":336,"value":1492},", text: event.version }] }\n",{"type":331,"tag":396,"props":1494,"children":1495},{"class":398,"line":1043},[1496,1501,1506,1510],{"type":331,"tag":396,"props":1497,"children":1498},{"style":426},[1499],{"type":336,"value":1500},"], { text: ",{"type":331,"tag":396,"props":1502,"children":1503},{"style":432},[1504],{"type":336,"value":1505},"\"Deploy complete: \"",{"type":331,"tag":396,"props":1507,"children":1508},{"style":403},[1509],{"type":336,"value":481},{"type":331,"tag":396,"props":1511,"children":1512},{"style":426},[1513],{"type":336,"value":1514}," event.version })\n",{"type":331,"tag":396,"props":1516,"children":1518},{"class":398,"line":1517},8,[1519],{"type":331,"tag":396,"props":1520,"children":1521},{"emptyLinePlaceholder":1394},[1522],{"type":336,"value":1397},{"type":331,"tag":396,"props":1524,"children":1526},{"class":398,"line":1525},9,[1527,1531,1535,1539,1543,1547,1551],{"type":331,"tag":396,"props":1528,"children":1529},{"style":426},[1530],{"type":336,"value":518},{"type":331,"tag":396,"props":1532,"children":1533},{"style":420},[1534],{"type":336,"value":523},{"type":331,"tag":396,"props":1536,"children":1537},{"style":426},[1538],{"type":336,"value":429},{"type":331,"tag":396,"props":1540,"children":1541},{"style":409},[1542],{"type":336,"value":532},{"type":331,"tag":396,"props":1544,"children":1545},{"style":426},[1546],{"type":336,"value":364},{"type":331,"tag":396,"props":1548,"children":1549},{"style":420},[1550],{"type":336,"value":541},{"type":331,"tag":396,"props":1552,"children":1553},{"style":426},[1554],{"type":336,"value":1555},"(body))\n",{"type":331,"tag":396,"props":1557,"children":1559},{"class":398,"line":1558},10,[1560,1564,1568,1572,1577,1582,1587],{"type":331,"tag":396,"props":1561,"children":1562},{"style":426},[1563],{"type":336,"value":518},{"type":331,"tag":396,"props":1565,"children":1566},{"style":420},[1567],{"type":336,"value":875},{"type":331,"tag":396,"props":1569,"children":1570},{"style":426},[1571],{"type":336,"value":429},{"type":331,"tag":396,"props":1573,"children":1574},{"style":432},[1575],{"type":336,"value":1576},"\"Content-Type\"",{"type":331,"tag":396,"props":1578,"children":1579},{"style":426},[1580],{"type":336,"value":1581},", ",{"type":331,"tag":396,"props":1583,"children":1584},{"style":432},[1585],{"type":336,"value":1586},"\"application/json\"",{"type":331,"tag":396,"props":1588,"children":1589},{"style":426},[1590],{"type":336,"value":440},{"type":331,"tag":332,"props":1592,"children":1593},{},[1594,1596,1602,1604,1610,1612,1618,1620,1626],{"type":336,"value":1595},"Slack message payloads accept at most 50 blocks. ",{"type":331,"tag":350,"props":1597,"children":1599},{"className":1598},[],[1600],{"type":336,"value":1601},"options.text",{"type":336,"value":1603}," is required as\nthe notification and accessibility fallback. When delivering to Slack's\n",{"type":331,"tag":350,"props":1605,"children":1607},{"className":1606},[],[1608],{"type":336,"value":1609},"chat.postMessage",{"type":336,"value":1611}," API instead of an incoming webhook, pass the required\n",{"type":331,"tag":350,"props":1613,"children":1615},{"className":1614},[],[1616],{"type":336,"value":1617},"channel",{"type":336,"value":1619}," as an option, for example ",{"type":331,"tag":350,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":336,"value":1625},"slack.message(\"Build passed\", {channel: \"C123\"})",{"type":336,"value":364},{"type":331,"tag":366,"props":1628,"children":1630},{"id":1629},"discord",[1631],{"type":336,"value":1632},"Discord",{"type":331,"tag":332,"props":1634,"children":1635},{},[1636,1642,1644,1650],{"type":331,"tag":350,"props":1637,"children":1639},{"className":1638},[],[1640],{"type":336,"value":1641},"discord.embed()",{"type":336,"value":1643}," validates Discord's title, description, field and aggregate\ntext limits. Wrap the returned embed in the webhook API's ",{"type":331,"tag":350,"props":1645,"children":1647},{"className":1646},[],[1648],{"type":336,"value":1649},"embeds",{"type":336,"value":1651}," array and\nuse a standard public output targeting the Discord webhook URL:",{"type":331,"tag":386,"props":1653,"children":1655},{"className":388,"code":1654,"language":390,"meta":318,"style":318},"const discord = require(\"discord\")\nconst embed = discord.embed(\"Deploy complete\", {\n  description: \"Production is healthy\",\n  color: 3066993,\n  fields: [{ name: \"Version\", value: \"2026.09.09\", inline: true }]\n})\n\nr.setBody(JSON.stringify({ embeds: [embed] }))\nr.setHeader(\"Content-Type\", \"application/json\")\n",[1656],{"type":331,"tag":350,"props":1657,"children":1658},{"__ignoreMap":318},[1659,1692,1732,1749,1766,1804,1811,1818,1850],{"type":331,"tag":396,"props":1660,"children":1661},{"class":398,"line":399},[1662,1666,1671,1675,1679,1683,1688],{"type":331,"tag":396,"props":1663,"children":1664},{"style":403},[1665],{"type":336,"value":406},{"type":331,"tag":396,"props":1667,"children":1668},{"style":409},[1669],{"type":336,"value":1670}," discord",{"type":331,"tag":396,"props":1672,"children":1673},{"style":403},[1674],{"type":336,"value":417},{"type":331,"tag":396,"props":1676,"children":1677},{"style":420},[1678],{"type":336,"value":423},{"type":331,"tag":396,"props":1680,"children":1681},{"style":426},[1682],{"type":336,"value":429},{"type":331,"tag":396,"props":1684,"children":1685},{"style":432},[1686],{"type":336,"value":1687},"\"discord\"",{"type":331,"tag":396,"props":1689,"children":1690},{"style":426},[1691],{"type":336,"value":440},{"type":331,"tag":396,"props":1693,"children":1694},{"class":398,"line":443},[1695,1699,1704,1708,1713,1718,1722,1727],{"type":331,"tag":396,"props":1696,"children":1697},{"style":403},[1698],{"type":336,"value":406},{"type":331,"tag":396,"props":1700,"children":1701},{"style":409},[1702],{"type":336,"value":1703}," embed",{"type":331,"tag":396,"props":1705,"children":1706},{"style":403},[1707],{"type":336,"value":417},{"type":331,"tag":396,"props":1709,"children":1710},{"style":426},[1711],{"type":336,"value":1712}," discord.",{"type":331,"tag":396,"props":1714,"children":1715},{"style":420},[1716],{"type":336,"value":1717},"embed",{"type":331,"tag":396,"props":1719,"children":1720},{"style":426},[1721],{"type":336,"value":429},{"type":331,"tag":396,"props":1723,"children":1724},{"style":432},[1725],{"type":336,"value":1726},"\"Deploy complete\"",{"type":331,"tag":396,"props":1728,"children":1729},{"style":426},[1730],{"type":336,"value":1731},", {\n",{"type":331,"tag":396,"props":1733,"children":1734},{"class":398,"line":489},[1735,1740,1745],{"type":331,"tag":396,"props":1736,"children":1737},{"style":426},[1738],{"type":336,"value":1739},"  description: ",{"type":331,"tag":396,"props":1741,"children":1742},{"style":432},[1743],{"type":336,"value":1744},"\"Production is healthy\"",{"type":331,"tag":396,"props":1746,"children":1747},{"style":426},[1748],{"type":336,"value":680},{"type":331,"tag":396,"props":1750,"children":1751},{"class":398,"line":503},[1752,1757,1762],{"type":331,"tag":396,"props":1753,"children":1754},{"style":426},[1755],{"type":336,"value":1756},"  color: ",{"type":331,"tag":396,"props":1758,"children":1759},{"style":409},[1760],{"type":336,"value":1761},"3066993",{"type":331,"tag":396,"props":1763,"children":1764},{"style":426},[1765],{"type":336,"value":680},{"type":331,"tag":396,"props":1767,"children":1768},{"class":398,"line":512},[1769,1774,1779,1784,1789,1794,1799],{"type":331,"tag":396,"props":1770,"children":1771},{"style":426},[1772],{"type":336,"value":1773},"  fields: [{ name: ",{"type":331,"tag":396,"props":1775,"children":1776},{"style":432},[1777],{"type":336,"value":1778},"\"Version\"",{"type":331,"tag":396,"props":1780,"children":1781},{"style":426},[1782],{"type":336,"value":1783},", value: ",{"type":331,"tag":396,"props":1785,"children":1786},{"style":432},[1787],{"type":336,"value":1788},"\"2026.09.09\"",{"type":331,"tag":396,"props":1790,"children":1791},{"style":426},[1792],{"type":336,"value":1793},", inline: ",{"type":331,"tag":396,"props":1795,"children":1796},{"style":409},[1797],{"type":336,"value":1798},"true",{"type":331,"tag":396,"props":1800,"children":1801},{"style":426},[1802],{"type":336,"value":1803}," }]\n",{"type":331,"tag":396,"props":1805,"children":1806},{"class":398,"line":701},[1807],{"type":331,"tag":396,"props":1808,"children":1809},{"style":426},[1810],{"type":336,"value":509},{"type":331,"tag":396,"props":1812,"children":1813},{"class":398,"line":1043},[1814],{"type":331,"tag":396,"props":1815,"children":1816},{"emptyLinePlaceholder":1394},[1817],{"type":336,"value":1397},{"type":331,"tag":396,"props":1819,"children":1820},{"class":398,"line":1517},[1821,1825,1829,1833,1837,1841,1845],{"type":331,"tag":396,"props":1822,"children":1823},{"style":426},[1824],{"type":336,"value":518},{"type":331,"tag":396,"props":1826,"children":1827},{"style":420},[1828],{"type":336,"value":523},{"type":331,"tag":396,"props":1830,"children":1831},{"style":426},[1832],{"type":336,"value":429},{"type":331,"tag":396,"props":1834,"children":1835},{"style":409},[1836],{"type":336,"value":532},{"type":331,"tag":396,"props":1838,"children":1839},{"style":426},[1840],{"type":336,"value":364},{"type":331,"tag":396,"props":1842,"children":1843},{"style":420},[1844],{"type":336,"value":541},{"type":331,"tag":396,"props":1846,"children":1847},{"style":426},[1848],{"type":336,"value":1849},"({ embeds: [embed] }))\n",{"type":331,"tag":396,"props":1851,"children":1852},{"class":398,"line":1525},[1853,1857,1861,1865,1869,1873,1877],{"type":331,"tag":396,"props":1854,"children":1855},{"style":426},[1856],{"type":336,"value":518},{"type":331,"tag":396,"props":1858,"children":1859},{"style":420},[1860],{"type":336,"value":875},{"type":331,"tag":396,"props":1862,"children":1863},{"style":426},[1864],{"type":336,"value":429},{"type":331,"tag":396,"props":1866,"children":1867},{"style":432},[1868],{"type":336,"value":1576},{"type":331,"tag":396,"props":1870,"children":1871},{"style":426},[1872],{"type":336,"value":1581},{"type":331,"tag":396,"props":1874,"children":1875},{"style":432},[1876],{"type":336,"value":1586},{"type":331,"tag":396,"props":1878,"children":1879},{"style":426},[1880],{"type":336,"value":440},{"type":331,"tag":366,"props":1882,"children":1884},{"id":1883},"telegram",[1885],{"type":336,"value":1886},"Telegram",{"type":331,"tag":332,"props":1888,"children":1889},{},[1890,1892,1898,1899,1905,1907,1913,1915,1921],{"type":336,"value":1891},"The Telegram helpers return ",{"type":331,"tag":350,"props":1893,"children":1895},{"className":1894},[],[1896],{"type":336,"value":1897},"method",{"type":336,"value":1581},{"type":331,"tag":350,"props":1900,"children":1902},{"className":1901},[],[1903],{"type":336,"value":1904},"path",{"type":336,"value":1906}," and ",{"type":331,"tag":350,"props":1908,"children":1910},{"className":1909},[],[1911],{"type":336,"value":1912},"body",{"type":336,"value":1914},". Apply all three to a\nstandard HTTP output whose destination is\n",{"type":331,"tag":350,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":336,"value":1920},"https://api.telegram.org/bot\u003CTOKEN>",{"type":336,"value":585},{"type":331,"tag":386,"props":1923,"children":1925},{"className":388,"code":1924,"language":390,"meta":318,"style":318},"const telegram = require(\"telegram\")\nconst request = telegram.message(\"-1001234567890\", \"Build passed\", {\n  disable_notification: true\n})\n\nr.setMethod(request.method)\nr.setPath(request.path)\nr.setBody(JSON.stringify(request.body))\nr.setHeader(\"Content-Type\", \"application/json\")\n",[1926],{"type":331,"tag":350,"props":1927,"children":1928},{"__ignoreMap":318},[1929,1962,2010,2023,2030,2037,2054,2071,2103],{"type":331,"tag":396,"props":1930,"children":1931},{"class":398,"line":399},[1932,1936,1941,1945,1949,1953,1958],{"type":331,"tag":396,"props":1933,"children":1934},{"style":403},[1935],{"type":336,"value":406},{"type":331,"tag":396,"props":1937,"children":1938},{"style":409},[1939],{"type":336,"value":1940}," telegram",{"type":331,"tag":396,"props":1942,"children":1943},{"style":403},[1944],{"type":336,"value":417},{"type":331,"tag":396,"props":1946,"children":1947},{"style":420},[1948],{"type":336,"value":423},{"type":331,"tag":396,"props":1950,"children":1951},{"style":426},[1952],{"type":336,"value":429},{"type":331,"tag":396,"props":1954,"children":1955},{"style":432},[1956],{"type":336,"value":1957},"\"telegram\"",{"type":331,"tag":396,"props":1959,"children":1960},{"style":426},[1961],{"type":336,"value":440},{"type":331,"tag":396,"props":1963,"children":1964},{"class":398,"line":443},[1965,1969,1974,1978,1983,1988,1992,1997,2001,2006],{"type":331,"tag":396,"props":1966,"children":1967},{"style":403},[1968],{"type":336,"value":406},{"type":331,"tag":396,"props":1970,"children":1971},{"style":409},[1972],{"type":336,"value":1973}," request",{"type":331,"tag":396,"props":1975,"children":1976},{"style":403},[1977],{"type":336,"value":417},{"type":331,"tag":396,"props":1979,"children":1980},{"style":426},[1981],{"type":336,"value":1982}," telegram.",{"type":331,"tag":396,"props":1984,"children":1985},{"style":420},[1986],{"type":336,"value":1987},"message",{"type":331,"tag":396,"props":1989,"children":1990},{"style":426},[1991],{"type":336,"value":429},{"type":331,"tag":396,"props":1993,"children":1994},{"style":432},[1995],{"type":336,"value":1996},"\"-1001234567890\"",{"type":331,"tag":396,"props":1998,"children":1999},{"style":426},[2000],{"type":336,"value":1581},{"type":331,"tag":396,"props":2002,"children":2003},{"style":432},[2004],{"type":336,"value":2005},"\"Build passed\"",{"type":331,"tag":396,"props":2007,"children":2008},{"style":426},[2009],{"type":336,"value":1731},{"type":331,"tag":396,"props":2011,"children":2012},{"class":398,"line":489},[2013,2018],{"type":331,"tag":396,"props":2014,"children":2015},{"style":426},[2016],{"type":336,"value":2017},"  disable_notification: ",{"type":331,"tag":396,"props":2019,"children":2020},{"style":409},[2021],{"type":336,"value":2022},"true\n",{"type":331,"tag":396,"props":2024,"children":2025},{"class":398,"line":503},[2026],{"type":331,"tag":396,"props":2027,"children":2028},{"style":426},[2029],{"type":336,"value":509},{"type":331,"tag":396,"props":2031,"children":2032},{"class":398,"line":512},[2033],{"type":331,"tag":396,"props":2034,"children":2035},{"emptyLinePlaceholder":1394},[2036],{"type":336,"value":1397},{"type":331,"tag":396,"props":2038,"children":2039},{"class":398,"line":701},[2040,2044,2049],{"type":331,"tag":396,"props":2041,"children":2042},{"style":426},[2043],{"type":336,"value":518},{"type":331,"tag":396,"props":2045,"children":2046},{"style":420},[2047],{"type":336,"value":2048},"setMethod",{"type":331,"tag":396,"props":2050,"children":2051},{"style":426},[2052],{"type":336,"value":2053},"(request.method)\n",{"type":331,"tag":396,"props":2055,"children":2056},{"class":398,"line":1043},[2057,2061,2066],{"type":331,"tag":396,"props":2058,"children":2059},{"style":426},[2060],{"type":336,"value":518},{"type":331,"tag":396,"props":2062,"children":2063},{"style":420},[2064],{"type":336,"value":2065},"setPath",{"type":331,"tag":396,"props":2067,"children":2068},{"style":426},[2069],{"type":336,"value":2070},"(request.path)\n",{"type":331,"tag":396,"props":2072,"children":2073},{"class":398,"line":1517},[2074,2078,2082,2086,2090,2094,2098],{"type":331,"tag":396,"props":2075,"children":2076},{"style":426},[2077],{"type":336,"value":518},{"type":331,"tag":396,"props":2079,"children":2080},{"style":420},[2081],{"type":336,"value":523},{"type":331,"tag":396,"props":2083,"children":2084},{"style":426},[2085],{"type":336,"value":429},{"type":331,"tag":396,"props":2087,"children":2088},{"style":409},[2089],{"type":336,"value":532},{"type":331,"tag":396,"props":2091,"children":2092},{"style":426},[2093],{"type":336,"value":364},{"type":331,"tag":396,"props":2095,"children":2096},{"style":420},[2097],{"type":336,"value":541},{"type":331,"tag":396,"props":2099,"children":2100},{"style":426},[2101],{"type":336,"value":2102},"(request.body))\n",{"type":331,"tag":396,"props":2104,"children":2105},{"class":398,"line":1525},[2106,2110,2114,2118,2122,2126,2130],{"type":331,"tag":396,"props":2107,"children":2108},{"style":426},[2109],{"type":336,"value":518},{"type":331,"tag":396,"props":2111,"children":2112},{"style":420},[2113],{"type":336,"value":875},{"type":331,"tag":396,"props":2115,"children":2116},{"style":426},[2117],{"type":336,"value":429},{"type":331,"tag":396,"props":2119,"children":2120},{"style":432},[2121],{"type":336,"value":1576},{"type":331,"tag":396,"props":2123,"children":2124},{"style":426},[2125],{"type":336,"value":1581},{"type":331,"tag":396,"props":2127,"children":2128},{"style":432},[2129],{"type":336,"value":1586},{"type":331,"tag":396,"props":2131,"children":2132},{"style":426},[2133],{"type":336,"value":440},{"type":331,"tag":332,"props":2135,"children":2136},{},[2137,2139,2145],{"type":336,"value":2138},"For an inline-button webhook, use\n",{"type":331,"tag":350,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":336,"value":2144},"telegram.answerCallback(event.callback_query.id, {text: \"Done\"})",{"type":336,"value":2146}," and apply\nthe returned descriptor in the same way. The helper does not include a bot\ntoken. Telegram authentication is part of the Bot API URL, and there is not\ncurrently a dedicated Telegram output connection, so the configured output\ndestination contains the token.",{"type":331,"tag":366,"props":2148,"children":2150},{"id":2149},"notion",[2151],{"type":336,"value":2152},"Notion",{"type":331,"tag":332,"props":2154,"children":2155},{},[2156,2162,2164,2170],{"type":331,"tag":350,"props":2157,"children":2159},{"className":2158},[],[2160],{"type":336,"value":2161},"notion.properties()",{"type":336,"value":2163}," maps ordinary values into typed Notion page properties.\nUse the result as ",{"type":331,"tag":350,"props":2165,"children":2167},{"className":2166},[],[2168],{"type":336,"value":2169},"properties",{"type":336,"value":2171}," in a page create or update output:",{"type":331,"tag":386,"props":2173,"children":2175},{"className":388,"code":2174,"language":390,"meta":318,"style":318},"const notion = require(\"notion\")\nconst event = JSON.parse(r.body)\n\nconst properties = notion.properties({\n  Name: { type: \"title\", value: event.customer.name },\n  Status: { type: \"status\", value: \"New\" },\n  Amount: { type: \"number\", value: event.amount },\n  Received: { type: \"date\", value: event.created_at }\n})\n\nr.setBody(JSON.stringify({\n  parent: { type: \"data_source_id\", data_source_id: \"DATA_SOURCE_ID\" },\n  properties\n}))\nr.setHeader(\"Content-Type\", \"application/json\")\nr.setHeader(\"Notion-Version\", \"2026-03-11\")\n",[2176],{"type":331,"tag":350,"props":2177,"children":2178},{"__ignoreMap":318},[2179,2212,2243,2250,2280,2298,2325,2343,2361,2368,2375,2407,2435,2444,2453,2485],{"type":331,"tag":396,"props":2180,"children":2181},{"class":398,"line":399},[2182,2186,2191,2195,2199,2203,2208],{"type":331,"tag":396,"props":2183,"children":2184},{"style":403},[2185],{"type":336,"value":406},{"type":331,"tag":396,"props":2187,"children":2188},{"style":409},[2189],{"type":336,"value":2190}," notion",{"type":331,"tag":396,"props":2192,"children":2193},{"style":403},[2194],{"type":336,"value":417},{"type":331,"tag":396,"props":2196,"children":2197},{"style":420},[2198],{"type":336,"value":423},{"type":331,"tag":396,"props":2200,"children":2201},{"style":426},[2202],{"type":336,"value":429},{"type":331,"tag":396,"props":2204,"children":2205},{"style":432},[2206],{"type":336,"value":2207},"\"notion\"",{"type":331,"tag":396,"props":2209,"children":2210},{"style":426},[2211],{"type":336,"value":440},{"type":331,"tag":396,"props":2213,"children":2214},{"class":398,"line":443},[2215,2219,2223,2227,2231,2235,2239],{"type":331,"tag":396,"props":2216,"children":2217},{"style":403},[2218],{"type":336,"value":406},{"type":331,"tag":396,"props":2220,"children":2221},{"style":409},[2222],{"type":336,"value":1365},{"type":331,"tag":396,"props":2224,"children":2225},{"style":403},[2226],{"type":336,"value":417},{"type":331,"tag":396,"props":2228,"children":2229},{"style":409},[2230],{"type":336,"value":1374},{"type":331,"tag":396,"props":2232,"children":2233},{"style":426},[2234],{"type":336,"value":364},{"type":331,"tag":396,"props":2236,"children":2237},{"style":420},[2238],{"type":336,"value":1383},{"type":331,"tag":396,"props":2240,"children":2241},{"style":426},[2242],{"type":336,"value":1388},{"type":331,"tag":396,"props":2244,"children":2245},{"class":398,"line":489},[2246],{"type":331,"tag":396,"props":2247,"children":2248},{"emptyLinePlaceholder":1394},[2249],{"type":336,"value":1397},{"type":331,"tag":396,"props":2251,"children":2252},{"class":398,"line":503},[2253,2257,2262,2266,2271,2275],{"type":331,"tag":396,"props":2254,"children":2255},{"style":403},[2256],{"type":336,"value":406},{"type":331,"tag":396,"props":2258,"children":2259},{"style":409},[2260],{"type":336,"value":2261}," properties",{"type":331,"tag":396,"props":2263,"children":2264},{"style":403},[2265],{"type":336,"value":417},{"type":331,"tag":396,"props":2267,"children":2268},{"style":426},[2269],{"type":336,"value":2270}," notion.",{"type":331,"tag":396,"props":2272,"children":2273},{"style":420},[2274],{"type":336,"value":2169},{"type":331,"tag":396,"props":2276,"children":2277},{"style":426},[2278],{"type":336,"value":2279},"({\n",{"type":331,"tag":396,"props":2281,"children":2282},{"class":398,"line":512},[2283,2288,2293],{"type":331,"tag":396,"props":2284,"children":2285},{"style":426},[2286],{"type":336,"value":2287},"  Name: { type: ",{"type":331,"tag":396,"props":2289,"children":2290},{"style":432},[2291],{"type":336,"value":2292},"\"title\"",{"type":331,"tag":396,"props":2294,"children":2295},{"style":426},[2296],{"type":336,"value":2297},", value: event.customer.name },\n",{"type":331,"tag":396,"props":2299,"children":2300},{"class":398,"line":701},[2301,2306,2311,2315,2320],{"type":331,"tag":396,"props":2302,"children":2303},{"style":426},[2304],{"type":336,"value":2305},"  Status: { type: ",{"type":331,"tag":396,"props":2307,"children":2308},{"style":432},[2309],{"type":336,"value":2310},"\"status\"",{"type":331,"tag":396,"props":2312,"children":2313},{"style":426},[2314],{"type":336,"value":1783},{"type":331,"tag":396,"props":2316,"children":2317},{"style":432},[2318],{"type":336,"value":2319},"\"New\"",{"type":331,"tag":396,"props":2321,"children":2322},{"style":426},[2323],{"type":336,"value":2324}," },\n",{"type":331,"tag":396,"props":2326,"children":2327},{"class":398,"line":1043},[2328,2333,2338],{"type":331,"tag":396,"props":2329,"children":2330},{"style":426},[2331],{"type":336,"value":2332},"  Amount: { type: ",{"type":331,"tag":396,"props":2334,"children":2335},{"style":432},[2336],{"type":336,"value":2337},"\"number\"",{"type":331,"tag":396,"props":2339,"children":2340},{"style":426},[2341],{"type":336,"value":2342},", value: event.amount },\n",{"type":331,"tag":396,"props":2344,"children":2345},{"class":398,"line":1517},[2346,2351,2356],{"type":331,"tag":396,"props":2347,"children":2348},{"style":426},[2349],{"type":336,"value":2350},"  Received: { type: ",{"type":331,"tag":396,"props":2352,"children":2353},{"style":432},[2354],{"type":336,"value":2355},"\"date\"",{"type":331,"tag":396,"props":2357,"children":2358},{"style":426},[2359],{"type":336,"value":2360},", value: event.created_at }\n",{"type":331,"tag":396,"props":2362,"children":2363},{"class":398,"line":1525},[2364],{"type":331,"tag":396,"props":2365,"children":2366},{"style":426},[2367],{"type":336,"value":509},{"type":331,"tag":396,"props":2369,"children":2370},{"class":398,"line":1558},[2371],{"type":331,"tag":396,"props":2372,"children":2373},{"emptyLinePlaceholder":1394},[2374],{"type":336,"value":1397},{"type":331,"tag":396,"props":2376,"children":2378},{"class":398,"line":2377},11,[2379,2383,2387,2391,2395,2399,2403],{"type":331,"tag":396,"props":2380,"children":2381},{"style":426},[2382],{"type":336,"value":518},{"type":331,"tag":396,"props":2384,"children":2385},{"style":420},[2386],{"type":336,"value":523},{"type":331,"tag":396,"props":2388,"children":2389},{"style":426},[2390],{"type":336,"value":429},{"type":331,"tag":396,"props":2392,"children":2393},{"style":409},[2394],{"type":336,"value":532},{"type":331,"tag":396,"props":2396,"children":2397},{"style":426},[2398],{"type":336,"value":364},{"type":331,"tag":396,"props":2400,"children":2401},{"style":420},[2402],{"type":336,"value":541},{"type":331,"tag":396,"props":2404,"children":2405},{"style":426},[2406],{"type":336,"value":2279},{"type":331,"tag":396,"props":2408,"children":2410},{"class":398,"line":2409},12,[2411,2416,2421,2426,2431],{"type":331,"tag":396,"props":2412,"children":2413},{"style":426},[2414],{"type":336,"value":2415},"  parent: { type: ",{"type":331,"tag":396,"props":2417,"children":2418},{"style":432},[2419],{"type":336,"value":2420},"\"data_source_id\"",{"type":331,"tag":396,"props":2422,"children":2423},{"style":426},[2424],{"type":336,"value":2425},", data_source_id: ",{"type":331,"tag":396,"props":2427,"children":2428},{"style":432},[2429],{"type":336,"value":2430},"\"DATA_SOURCE_ID\"",{"type":331,"tag":396,"props":2432,"children":2433},{"style":426},[2434],{"type":336,"value":2324},{"type":331,"tag":396,"props":2436,"children":2438},{"class":398,"line":2437},13,[2439],{"type":331,"tag":396,"props":2440,"children":2441},{"style":426},[2442],{"type":336,"value":2443},"  properties\n",{"type":331,"tag":396,"props":2445,"children":2447},{"class":398,"line":2446},14,[2448],{"type":331,"tag":396,"props":2449,"children":2450},{"style":426},[2451],{"type":336,"value":2452},"}))\n",{"type":331,"tag":396,"props":2454,"children":2456},{"class":398,"line":2455},15,[2457,2461,2465,2469,2473,2477,2481],{"type":331,"tag":396,"props":2458,"children":2459},{"style":426},[2460],{"type":336,"value":518},{"type":331,"tag":396,"props":2462,"children":2463},{"style":420},[2464],{"type":336,"value":875},{"type":331,"tag":396,"props":2466,"children":2467},{"style":426},[2468],{"type":336,"value":429},{"type":331,"tag":396,"props":2470,"children":2471},{"style":432},[2472],{"type":336,"value":1576},{"type":331,"tag":396,"props":2474,"children":2475},{"style":426},[2476],{"type":336,"value":1581},{"type":331,"tag":396,"props":2478,"children":2479},{"style":432},[2480],{"type":336,"value":1586},{"type":331,"tag":396,"props":2482,"children":2483},{"style":426},[2484],{"type":336,"value":440},{"type":331,"tag":396,"props":2486,"children":2488},{"class":398,"line":2487},16,[2489,2493,2497,2501,2506,2510,2515],{"type":331,"tag":396,"props":2490,"children":2491},{"style":426},[2492],{"type":336,"value":518},{"type":331,"tag":396,"props":2494,"children":2495},{"style":420},[2496],{"type":336,"value":875},{"type":331,"tag":396,"props":2498,"children":2499},{"style":426},[2500],{"type":336,"value":429},{"type":331,"tag":396,"props":2502,"children":2503},{"style":432},[2504],{"type":336,"value":2505},"\"Notion-Version\"",{"type":331,"tag":396,"props":2507,"children":2508},{"style":426},[2509],{"type":336,"value":1581},{"type":331,"tag":396,"props":2511,"children":2512},{"style":432},[2513],{"type":336,"value":2514},"\"2026-03-11\"",{"type":331,"tag":396,"props":2516,"children":2517},{"style":426},[2518],{"type":336,"value":440},{"type":331,"tag":332,"props":2520,"children":2521},{},[2522,2524,2529],{"type":336,"value":2523},"Store the Notion integration token as a ",{"type":331,"tag":339,"props":2525,"children":2526},{"href":104},[2527],{"type":336,"value":2528},"secret connection",{"type":336,"value":2530},"\nand set its Bearer header in the Function or output configuration.",{"type":331,"tag":366,"props":2532,"children":2534},{"id":2533},"airtable",[2535],{"type":336,"value":2536},"Airtable",{"type":331,"tag":332,"props":2538,"children":2539},{},[2540,2546],{"type":331,"tag":350,"props":2541,"children":2543},{"className":2542},[],[2544],{"type":336,"value":2545},"airtable.fields()",{"type":336,"value":2547}," wraps a record for Airtable and can enable API typecasting:",{"type":331,"tag":386,"props":2549,"children":2551},{"className":388,"code":2550,"language":390,"meta":318,"style":318},"const airtable = require(\"airtable\")\nconst event = JSON.parse(r.body)\n\nconst body = airtable.fields({\n  Name: event.customer.name,\n  Email: event.customer.email,\n  Active: true\n}, { typecast: true })\n\nr.setBody(JSON.stringify(body))\nr.setHeader(\"Content-Type\", \"application/json\")\n",[2552],{"type":331,"tag":350,"props":2553,"children":2554},{"__ignoreMap":318},[2555,2588,2619,2626,2655,2663,2671,2683,2700,2707,2738],{"type":331,"tag":396,"props":2556,"children":2557},{"class":398,"line":399},[2558,2562,2567,2571,2575,2579,2584],{"type":331,"tag":396,"props":2559,"children":2560},{"style":403},[2561],{"type":336,"value":406},{"type":331,"tag":396,"props":2563,"children":2564},{"style":409},[2565],{"type":336,"value":2566}," airtable",{"type":331,"tag":396,"props":2568,"children":2569},{"style":403},[2570],{"type":336,"value":417},{"type":331,"tag":396,"props":2572,"children":2573},{"style":420},[2574],{"type":336,"value":423},{"type":331,"tag":396,"props":2576,"children":2577},{"style":426},[2578],{"type":336,"value":429},{"type":331,"tag":396,"props":2580,"children":2581},{"style":432},[2582],{"type":336,"value":2583},"\"airtable\"",{"type":331,"tag":396,"props":2585,"children":2586},{"style":426},[2587],{"type":336,"value":440},{"type":331,"tag":396,"props":2589,"children":2590},{"class":398,"line":443},[2591,2595,2599,2603,2607,2611,2615],{"type":331,"tag":396,"props":2592,"children":2593},{"style":403},[2594],{"type":336,"value":406},{"type":331,"tag":396,"props":2596,"children":2597},{"style":409},[2598],{"type":336,"value":1365},{"type":331,"tag":396,"props":2600,"children":2601},{"style":403},[2602],{"type":336,"value":417},{"type":331,"tag":396,"props":2604,"children":2605},{"style":409},[2606],{"type":336,"value":1374},{"type":331,"tag":396,"props":2608,"children":2609},{"style":426},[2610],{"type":336,"value":364},{"type":331,"tag":396,"props":2612,"children":2613},{"style":420},[2614],{"type":336,"value":1383},{"type":331,"tag":396,"props":2616,"children":2617},{"style":426},[2618],{"type":336,"value":1388},{"type":331,"tag":396,"props":2620,"children":2621},{"class":398,"line":489},[2622],{"type":331,"tag":396,"props":2623,"children":2624},{"emptyLinePlaceholder":1394},[2625],{"type":336,"value":1397},{"type":331,"tag":396,"props":2627,"children":2628},{"class":398,"line":503},[2629,2633,2637,2641,2646,2651],{"type":331,"tag":396,"props":2630,"children":2631},{"style":403},[2632],{"type":336,"value":406},{"type":331,"tag":396,"props":2634,"children":2635},{"style":409},[2636],{"type":336,"value":1409},{"type":331,"tag":396,"props":2638,"children":2639},{"style":403},[2640],{"type":336,"value":417},{"type":331,"tag":396,"props":2642,"children":2643},{"style":426},[2644],{"type":336,"value":2645}," airtable.",{"type":331,"tag":396,"props":2647,"children":2648},{"style":420},[2649],{"type":336,"value":2650},"fields",{"type":331,"tag":396,"props":2652,"children":2653},{"style":426},[2654],{"type":336,"value":2279},{"type":331,"tag":396,"props":2656,"children":2657},{"class":398,"line":512},[2658],{"type":331,"tag":396,"props":2659,"children":2660},{"style":426},[2661],{"type":336,"value":2662},"  Name: event.customer.name,\n",{"type":331,"tag":396,"props":2664,"children":2665},{"class":398,"line":701},[2666],{"type":331,"tag":396,"props":2667,"children":2668},{"style":426},[2669],{"type":336,"value":2670},"  Email: event.customer.email,\n",{"type":331,"tag":396,"props":2672,"children":2673},{"class":398,"line":1043},[2674,2679],{"type":331,"tag":396,"props":2675,"children":2676},{"style":426},[2677],{"type":336,"value":2678},"  Active: ",{"type":331,"tag":396,"props":2680,"children":2681},{"style":409},[2682],{"type":336,"value":2022},{"type":331,"tag":396,"props":2684,"children":2685},{"class":398,"line":1517},[2686,2691,2695],{"type":331,"tag":396,"props":2687,"children":2688},{"style":426},[2689],{"type":336,"value":2690},"}, { typecast: ",{"type":331,"tag":396,"props":2692,"children":2693},{"style":409},[2694],{"type":336,"value":1798},{"type":331,"tag":396,"props":2696,"children":2697},{"style":426},[2698],{"type":336,"value":2699}," })\n",{"type":331,"tag":396,"props":2701,"children":2702},{"class":398,"line":1525},[2703],{"type":331,"tag":396,"props":2704,"children":2705},{"emptyLinePlaceholder":1394},[2706],{"type":336,"value":1397},{"type":331,"tag":396,"props":2708,"children":2709},{"class":398,"line":1558},[2710,2714,2718,2722,2726,2730,2734],{"type":331,"tag":396,"props":2711,"children":2712},{"style":426},[2713],{"type":336,"value":518},{"type":331,"tag":396,"props":2715,"children":2716},{"style":420},[2717],{"type":336,"value":523},{"type":331,"tag":396,"props":2719,"children":2720},{"style":426},[2721],{"type":336,"value":429},{"type":331,"tag":396,"props":2723,"children":2724},{"style":409},[2725],{"type":336,"value":532},{"type":331,"tag":396,"props":2727,"children":2728},{"style":426},[2729],{"type":336,"value":364},{"type":331,"tag":396,"props":2731,"children":2732},{"style":420},[2733],{"type":336,"value":541},{"type":331,"tag":396,"props":2735,"children":2736},{"style":426},[2737],{"type":336,"value":1555},{"type":331,"tag":396,"props":2739,"children":2740},{"class":398,"line":2377},[2741,2745,2749,2753,2757,2761,2765],{"type":331,"tag":396,"props":2742,"children":2743},{"style":426},[2744],{"type":336,"value":518},{"type":331,"tag":396,"props":2746,"children":2747},{"style":420},[2748],{"type":336,"value":875},{"type":331,"tag":396,"props":2750,"children":2751},{"style":426},[2752],{"type":336,"value":429},{"type":331,"tag":396,"props":2754,"children":2755},{"style":432},[2756],{"type":336,"value":1576},{"type":331,"tag":396,"props":2758,"children":2759},{"style":426},[2760],{"type":336,"value":1581},{"type":331,"tag":396,"props":2762,"children":2763},{"style":432},[2764],{"type":336,"value":1586},{"type":331,"tag":396,"props":2766,"children":2767},{"style":426},[2768],{"type":336,"value":440},{"type":331,"tag":332,"props":2770,"children":2771},{},[2772,2774,2780],{"type":336,"value":2773},"This example creates one record. Use an Airtable personal access token from a\nsecret connection for the ",{"type":331,"tag":350,"props":2775,"children":2777},{"className":2776},[],[2778],{"type":336,"value":2779},"Authorization: Bearer …",{"type":336,"value":2781}," header. The output\ndestination remains the Airtable records endpoint.",{"type":331,"tag":366,"props":2783,"children":2785},{"id":2784},"google-sheets",[2786],{"type":336,"value":2787},"Google Sheets",{"type":331,"tag":332,"props":2789,"children":2790},{},[2791,2797,2799,2805,2807,2813],{"type":331,"tag":350,"props":2792,"children":2794},{"className":2793},[],[2795],{"type":336,"value":2796},"sheets.row()",{"type":336,"value":2798}," creates a ",{"type":331,"tag":350,"props":2800,"children":2802},{"className":2801},[],[2803],{"type":336,"value":2804},"ValueRange",{"type":336,"value":2806}," with stable column order for the Sheets\n",{"type":331,"tag":350,"props":2808,"children":2810},{"className":2809},[],[2811],{"type":336,"value":2812},"spreadsheets.values.append",{"type":336,"value":2814}," endpoint:",{"type":331,"tag":386,"props":2816,"children":2818},{"className":388,"code":2817,"language":390,"meta":318,"style":318},"const sheets = require(\"sheets\")\nconst event = JSON.parse(r.body)\n\nconst row = sheets.row(event, [\"id\", \"email\", \"amount\", \"created_at\"])\nr.setBody(JSON.stringify(row))\nr.setHeader(\"Content-Type\", \"application/json\")\n",[2819],{"type":331,"tag":350,"props":2820,"children":2821},{"__ignoreMap":318},[2822,2855,2886,2893,2961,2993],{"type":331,"tag":396,"props":2823,"children":2824},{"class":398,"line":399},[2825,2829,2834,2838,2842,2846,2851],{"type":331,"tag":396,"props":2826,"children":2827},{"style":403},[2828],{"type":336,"value":406},{"type":331,"tag":396,"props":2830,"children":2831},{"style":409},[2832],{"type":336,"value":2833}," sheets",{"type":331,"tag":396,"props":2835,"children":2836},{"style":403},[2837],{"type":336,"value":417},{"type":331,"tag":396,"props":2839,"children":2840},{"style":420},[2841],{"type":336,"value":423},{"type":331,"tag":396,"props":2843,"children":2844},{"style":426},[2845],{"type":336,"value":429},{"type":331,"tag":396,"props":2847,"children":2848},{"style":432},[2849],{"type":336,"value":2850},"\"sheets\"",{"type":331,"tag":396,"props":2852,"children":2853},{"style":426},[2854],{"type":336,"value":440},{"type":331,"tag":396,"props":2856,"children":2857},{"class":398,"line":443},[2858,2862,2866,2870,2874,2878,2882],{"type":331,"tag":396,"props":2859,"children":2860},{"style":403},[2861],{"type":336,"value":406},{"type":331,"tag":396,"props":2863,"children":2864},{"style":409},[2865],{"type":336,"value":1365},{"type":331,"tag":396,"props":2867,"children":2868},{"style":403},[2869],{"type":336,"value":417},{"type":331,"tag":396,"props":2871,"children":2872},{"style":409},[2873],{"type":336,"value":1374},{"type":331,"tag":396,"props":2875,"children":2876},{"style":426},[2877],{"type":336,"value":364},{"type":331,"tag":396,"props":2879,"children":2880},{"style":420},[2881],{"type":336,"value":1383},{"type":331,"tag":396,"props":2883,"children":2884},{"style":426},[2885],{"type":336,"value":1388},{"type":331,"tag":396,"props":2887,"children":2888},{"class":398,"line":489},[2889],{"type":331,"tag":396,"props":2890,"children":2891},{"emptyLinePlaceholder":1394},[2892],{"type":336,"value":1397},{"type":331,"tag":396,"props":2894,"children":2895},{"class":398,"line":503},[2896,2900,2905,2909,2914,2919,2924,2929,2933,2938,2942,2947,2951,2956],{"type":331,"tag":396,"props":2897,"children":2898},{"style":403},[2899],{"type":336,"value":406},{"type":331,"tag":396,"props":2901,"children":2902},{"style":409},[2903],{"type":336,"value":2904}," row",{"type":331,"tag":396,"props":2906,"children":2907},{"style":403},[2908],{"type":336,"value":417},{"type":331,"tag":396,"props":2910,"children":2911},{"style":426},[2912],{"type":336,"value":2913}," sheets.",{"type":331,"tag":396,"props":2915,"children":2916},{"style":420},[2917],{"type":336,"value":2918},"row",{"type":331,"tag":396,"props":2920,"children":2921},{"style":426},[2922],{"type":336,"value":2923},"(event, [",{"type":331,"tag":396,"props":2925,"children":2926},{"style":432},[2927],{"type":336,"value":2928},"\"id\"",{"type":331,"tag":396,"props":2930,"children":2931},{"style":426},[2932],{"type":336,"value":1581},{"type":331,"tag":396,"props":2934,"children":2935},{"style":432},[2936],{"type":336,"value":2937},"\"email\"",{"type":331,"tag":396,"props":2939,"children":2940},{"style":426},[2941],{"type":336,"value":1581},{"type":331,"tag":396,"props":2943,"children":2944},{"style":432},[2945],{"type":336,"value":2946},"\"amount\"",{"type":331,"tag":396,"props":2948,"children":2949},{"style":426},[2950],{"type":336,"value":1581},{"type":331,"tag":396,"props":2952,"children":2953},{"style":432},[2954],{"type":336,"value":2955},"\"created_at\"",{"type":331,"tag":396,"props":2957,"children":2958},{"style":426},[2959],{"type":336,"value":2960},"])\n",{"type":331,"tag":396,"props":2962,"children":2963},{"class":398,"line":512},[2964,2968,2972,2976,2980,2984,2988],{"type":331,"tag":396,"props":2965,"children":2966},{"style":426},[2967],{"type":336,"value":518},{"type":331,"tag":396,"props":2969,"children":2970},{"style":420},[2971],{"type":336,"value":523},{"type":331,"tag":396,"props":2973,"children":2974},{"style":426},[2975],{"type":336,"value":429},{"type":331,"tag":396,"props":2977,"children":2978},{"style":409},[2979],{"type":336,"value":532},{"type":331,"tag":396,"props":2981,"children":2982},{"style":426},[2983],{"type":336,"value":364},{"type":331,"tag":396,"props":2985,"children":2986},{"style":420},[2987],{"type":336,"value":541},{"type":331,"tag":396,"props":2989,"children":2990},{"style":426},[2991],{"type":336,"value":2992},"(row))\n",{"type":331,"tag":396,"props":2994,"children":2995},{"class":398,"line":701},[2996,3000,3004,3008,3012,3016,3020],{"type":331,"tag":396,"props":2997,"children":2998},{"style":426},[2999],{"type":336,"value":518},{"type":331,"tag":396,"props":3001,"children":3002},{"style":420},[3003],{"type":336,"value":875},{"type":331,"tag":396,"props":3005,"children":3006},{"style":426},[3007],{"type":336,"value":429},{"type":331,"tag":396,"props":3009,"children":3010},{"style":432},[3011],{"type":336,"value":1576},{"type":331,"tag":396,"props":3013,"children":3014},{"style":426},[3015],{"type":336,"value":1581},{"type":331,"tag":396,"props":3017,"children":3018},{"style":432},[3019],{"type":336,"value":1586},{"type":331,"tag":396,"props":3021,"children":3022},{"style":426},[3023],{"type":336,"value":440},{"type":331,"tag":332,"props":3025,"children":3026},{},[3027,3029,3035],{"type":336,"value":3028},"Missing object properties become ",{"type":331,"tag":350,"props":3030,"children":3032},{"className":3031},[],[3033],{"type":336,"value":3034},"null",{"type":336,"value":3036}," cells. Authentication and the sheet\nrange belong to the configured output; the helper does not append the row.",{"type":331,"tag":366,"props":3038,"children":3040},{"id":3039},"supabase",[3041],{"type":336,"value":3042},"Supabase",{"type":331,"tag":332,"props":3044,"children":3045},{},[3046,3052,3053,3059],{"type":331,"tag":350,"props":3047,"children":3049},{"className":3048},[],[3050],{"type":336,"value":3051},"supabase.insert()",{"type":336,"value":1906},{"type":331,"tag":350,"props":3054,"children":3056},{"className":3055},[],[3057],{"type":336,"value":3058},"supabase.upsert()",{"type":336,"value":3060}," return a PostgREST request\ndescriptor. Apply its method, path, optional raw query, headers and body to an\noutput targeting the Supabase project URL:",{"type":331,"tag":386,"props":3062,"children":3064},{"className":388,"code":3063,"language":390,"meta":318,"style":318},"const supabase = require(\"supabase\")\nconst request = supabase.upsert(\"events\", JSON.parse(r.body), {\n  onConflict: \"id\",\n  returning: \"representation\"\n})\n\nr.setMethod(request.method)\nr.setPath(request.path)\nif (request.rawQuery) r.setRawQuery(request.rawQuery)\nObject.keys(request.headers).forEach(name => r.setHeader(name, request.headers[name]))\nr.setBody(JSON.stringify(request.body))\n",[3065],{"type":331,"tag":350,"props":3066,"children":3067},{"__ignoreMap":318},[3068,3101,3156,3172,3185,3192,3199,3214,3229,3252,3304],{"type":331,"tag":396,"props":3069,"children":3070},{"class":398,"line":399},[3071,3075,3080,3084,3088,3092,3097],{"type":331,"tag":396,"props":3072,"children":3073},{"style":403},[3074],{"type":336,"value":406},{"type":331,"tag":396,"props":3076,"children":3077},{"style":409},[3078],{"type":336,"value":3079}," supabase",{"type":331,"tag":396,"props":3081,"children":3082},{"style":403},[3083],{"type":336,"value":417},{"type":331,"tag":396,"props":3085,"children":3086},{"style":420},[3087],{"type":336,"value":423},{"type":331,"tag":396,"props":3089,"children":3090},{"style":426},[3091],{"type":336,"value":429},{"type":331,"tag":396,"props":3093,"children":3094},{"style":432},[3095],{"type":336,"value":3096},"\"supabase\"",{"type":331,"tag":396,"props":3098,"children":3099},{"style":426},[3100],{"type":336,"value":440},{"type":331,"tag":396,"props":3102,"children":3103},{"class":398,"line":443},[3104,3108,3112,3116,3121,3126,3130,3135,3139,3143,3147,3151],{"type":331,"tag":396,"props":3105,"children":3106},{"style":403},[3107],{"type":336,"value":406},{"type":331,"tag":396,"props":3109,"children":3110},{"style":409},[3111],{"type":336,"value":1973},{"type":331,"tag":396,"props":3113,"children":3114},{"style":403},[3115],{"type":336,"value":417},{"type":331,"tag":396,"props":3117,"children":3118},{"style":426},[3119],{"type":336,"value":3120}," supabase.",{"type":331,"tag":396,"props":3122,"children":3123},{"style":420},[3124],{"type":336,"value":3125},"upsert",{"type":331,"tag":396,"props":3127,"children":3128},{"style":426},[3129],{"type":336,"value":429},{"type":331,"tag":396,"props":3131,"children":3132},{"style":432},[3133],{"type":336,"value":3134},"\"events\"",{"type":331,"tag":396,"props":3136,"children":3137},{"style":426},[3138],{"type":336,"value":1581},{"type":331,"tag":396,"props":3140,"children":3141},{"style":409},[3142],{"type":336,"value":532},{"type":331,"tag":396,"props":3144,"children":3145},{"style":426},[3146],{"type":336,"value":364},{"type":331,"tag":396,"props":3148,"children":3149},{"style":420},[3150],{"type":336,"value":1383},{"type":331,"tag":396,"props":3152,"children":3153},{"style":426},[3154],{"type":336,"value":3155},"(r.body), {\n",{"type":331,"tag":396,"props":3157,"children":3158},{"class":398,"line":489},[3159,3164,3168],{"type":331,"tag":396,"props":3160,"children":3161},{"style":426},[3162],{"type":336,"value":3163},"  onConflict: ",{"type":331,"tag":396,"props":3165,"children":3166},{"style":432},[3167],{"type":336,"value":2928},{"type":331,"tag":396,"props":3169,"children":3170},{"style":426},[3171],{"type":336,"value":680},{"type":331,"tag":396,"props":3173,"children":3174},{"class":398,"line":503},[3175,3180],{"type":331,"tag":396,"props":3176,"children":3177},{"style":426},[3178],{"type":336,"value":3179},"  returning: ",{"type":331,"tag":396,"props":3181,"children":3182},{"style":432},[3183],{"type":336,"value":3184},"\"representation\"\n",{"type":331,"tag":396,"props":3186,"children":3187},{"class":398,"line":512},[3188],{"type":331,"tag":396,"props":3189,"children":3190},{"style":426},[3191],{"type":336,"value":509},{"type":331,"tag":396,"props":3193,"children":3194},{"class":398,"line":701},[3195],{"type":331,"tag":396,"props":3196,"children":3197},{"emptyLinePlaceholder":1394},[3198],{"type":336,"value":1397},{"type":331,"tag":396,"props":3200,"children":3201},{"class":398,"line":1043},[3202,3206,3210],{"type":331,"tag":396,"props":3203,"children":3204},{"style":426},[3205],{"type":336,"value":518},{"type":331,"tag":396,"props":3207,"children":3208},{"style":420},[3209],{"type":336,"value":2048},{"type":331,"tag":396,"props":3211,"children":3212},{"style":426},[3213],{"type":336,"value":2053},{"type":331,"tag":396,"props":3215,"children":3216},{"class":398,"line":1517},[3217,3221,3225],{"type":331,"tag":396,"props":3218,"children":3219},{"style":426},[3220],{"type":336,"value":518},{"type":331,"tag":396,"props":3222,"children":3223},{"style":420},[3224],{"type":336,"value":2065},{"type":331,"tag":396,"props":3226,"children":3227},{"style":426},[3228],{"type":336,"value":2070},{"type":331,"tag":396,"props":3230,"children":3231},{"class":398,"line":1525},[3232,3237,3242,3247],{"type":331,"tag":396,"props":3233,"children":3234},{"style":403},[3235],{"type":336,"value":3236},"if",{"type":331,"tag":396,"props":3238,"children":3239},{"style":426},[3240],{"type":336,"value":3241}," (request.rawQuery) r.",{"type":331,"tag":396,"props":3243,"children":3244},{"style":420},[3245],{"type":336,"value":3246},"setRawQuery",{"type":331,"tag":396,"props":3248,"children":3249},{"style":426},[3250],{"type":336,"value":3251},"(request.rawQuery)\n",{"type":331,"tag":396,"props":3253,"children":3254},{"class":398,"line":1558},[3255,3260,3265,3270,3275,3279,3285,3290,3295,3299],{"type":331,"tag":396,"props":3256,"children":3257},{"style":426},[3258],{"type":336,"value":3259},"Object.",{"type":331,"tag":396,"props":3261,"children":3262},{"style":420},[3263],{"type":336,"value":3264},"keys",{"type":331,"tag":396,"props":3266,"children":3267},{"style":426},[3268],{"type":336,"value":3269},"(request.headers).",{"type":331,"tag":396,"props":3271,"children":3272},{"style":420},[3273],{"type":336,"value":3274},"forEach",{"type":331,"tag":396,"props":3276,"children":3277},{"style":426},[3278],{"type":336,"value":429},{"type":331,"tag":396,"props":3280,"children":3282},{"style":3281},"--shiki-default:#FFAB70",[3283],{"type":336,"value":3284},"name",{"type":331,"tag":396,"props":3286,"children":3287},{"style":403},[3288],{"type":336,"value":3289}," =>",{"type":331,"tag":396,"props":3291,"children":3292},{"style":426},[3293],{"type":336,"value":3294}," r.",{"type":331,"tag":396,"props":3296,"children":3297},{"style":420},[3298],{"type":336,"value":875},{"type":331,"tag":396,"props":3300,"children":3301},{"style":426},[3302],{"type":336,"value":3303},"(name, request.headers[name]))\n",{"type":331,"tag":396,"props":3305,"children":3306},{"class":398,"line":2377},[3307,3311,3315,3319,3323,3327,3331],{"type":331,"tag":396,"props":3308,"children":3309},{"style":426},[3310],{"type":336,"value":518},{"type":331,"tag":396,"props":3312,"children":3313},{"style":420},[3314],{"type":336,"value":523},{"type":331,"tag":396,"props":3316,"children":3317},{"style":426},[3318],{"type":336,"value":429},{"type":331,"tag":396,"props":3320,"children":3321},{"style":409},[3322],{"type":336,"value":532},{"type":331,"tag":396,"props":3324,"children":3325},{"style":426},[3326],{"type":336,"value":364},{"type":331,"tag":396,"props":3328,"children":3329},{"style":420},[3330],{"type":336,"value":541},{"type":331,"tag":396,"props":3332,"children":3333},{"style":426},[3334],{"type":336,"value":2102},{"type":331,"tag":332,"props":3336,"children":3337},{},[3338,3340,3346,3348,3354],{"type":336,"value":3339},"Import the Supabase key from a secret connection and set the ",{"type":331,"tag":350,"props":3341,"children":3343},{"className":3342},[],[3344],{"type":336,"value":3345},"apikey",{"type":336,"value":3347}," and\n",{"type":331,"tag":350,"props":3349,"children":3351},{"className":3350},[],[3352],{"type":336,"value":3353},"Authorization",{"type":336,"value":3355}," headers, or configure those headers on the output. Keeping the\nwrite as an output makes an upsert observable and replayable through the normal\ndelivery system.",{"type":331,"tag":366,"props":3357,"children":3359},{"id":3358},"lua-usage",[3360],{"type":336,"value":3361},"Lua usage",{"type":331,"tag":332,"props":3363,"children":3364},{},[3365],{"type":336,"value":3366},"Every builder uses the same module and camelCase method names in Lua. Tables\nreplace JavaScript objects and request setters use colon syntax:",{"type":331,"tag":386,"props":3368,"children":3372},{"className":3369,"code":3370,"language":3371,"meta":318,"style":318},"language-lua shiki shiki-themes github-dark","local slack = require(\"slack\")\nlocal json = require(\"json\")\n\nlocal body = slack.message(\"Build passed\")\nlocal encoded, err = json.encode(body)\nif err then error(err) end\n\nr:SetRequestBody(encoded)\nr:SetRequestHeader(\"Content-Type\", \"application/json\")\n","lua",[3373],{"type":331,"tag":350,"props":3374,"children":3375},{"__ignoreMap":318},[3376,3410,3443,3450,3486,3517,3549,3556,3578],{"type":331,"tag":396,"props":3377,"children":3378},{"class":398,"line":399},[3379,3384,3389,3394,3398,3402,3406],{"type":331,"tag":396,"props":3380,"children":3381},{"style":403},[3382],{"type":336,"value":3383},"local",{"type":331,"tag":396,"props":3385,"children":3386},{"style":426},[3387],{"type":336,"value":3388}," slack ",{"type":331,"tag":396,"props":3390,"children":3391},{"style":403},[3392],{"type":336,"value":3393},"=",{"type":331,"tag":396,"props":3395,"children":3396},{"style":409},[3397],{"type":336,"value":423},{"type":331,"tag":396,"props":3399,"children":3400},{"style":426},[3401],{"type":336,"value":429},{"type":331,"tag":396,"props":3403,"children":3404},{"style":432},[3405],{"type":336,"value":1349},{"type":331,"tag":396,"props":3407,"children":3408},{"style":426},[3409],{"type":336,"value":440},{"type":331,"tag":396,"props":3411,"children":3412},{"class":398,"line":443},[3413,3417,3422,3426,3430,3434,3439],{"type":331,"tag":396,"props":3414,"children":3415},{"style":403},[3416],{"type":336,"value":3383},{"type":331,"tag":396,"props":3418,"children":3419},{"style":426},[3420],{"type":336,"value":3421}," json ",{"type":331,"tag":396,"props":3423,"children":3424},{"style":403},[3425],{"type":336,"value":3393},{"type":331,"tag":396,"props":3427,"children":3428},{"style":409},[3429],{"type":336,"value":423},{"type":331,"tag":396,"props":3431,"children":3432},{"style":426},[3433],{"type":336,"value":429},{"type":331,"tag":396,"props":3435,"children":3436},{"style":432},[3437],{"type":336,"value":3438},"\"json\"",{"type":331,"tag":396,"props":3440,"children":3441},{"style":426},[3442],{"type":336,"value":440},{"type":331,"tag":396,"props":3444,"children":3445},{"class":398,"line":489},[3446],{"type":331,"tag":396,"props":3447,"children":3448},{"emptyLinePlaceholder":1394},[3449],{"type":336,"value":1397},{"type":331,"tag":396,"props":3451,"children":3452},{"class":398,"line":503},[3453,3457,3462,3466,3470,3474,3478,3482],{"type":331,"tag":396,"props":3454,"children":3455},{"style":403},[3456],{"type":336,"value":3383},{"type":331,"tag":396,"props":3458,"children":3459},{"style":426},[3460],{"type":336,"value":3461}," body ",{"type":331,"tag":396,"props":3463,"children":3464},{"style":403},[3465],{"type":336,"value":3393},{"type":331,"tag":396,"props":3467,"children":3468},{"style":426},[3469],{"type":336,"value":1418},{"type":331,"tag":396,"props":3471,"children":3472},{"style":409},[3473],{"type":336,"value":1987},{"type":331,"tag":396,"props":3475,"children":3476},{"style":426},[3477],{"type":336,"value":429},{"type":331,"tag":396,"props":3479,"children":3480},{"style":432},[3481],{"type":336,"value":2005},{"type":331,"tag":396,"props":3483,"children":3484},{"style":426},[3485],{"type":336,"value":440},{"type":331,"tag":396,"props":3487,"children":3488},{"class":398,"line":512},[3489,3493,3498,3502,3507,3512],{"type":331,"tag":396,"props":3490,"children":3491},{"style":403},[3492],{"type":336,"value":3383},{"type":331,"tag":396,"props":3494,"children":3495},{"style":426},[3496],{"type":336,"value":3497}," encoded, err ",{"type":331,"tag":396,"props":3499,"children":3500},{"style":403},[3501],{"type":336,"value":3393},{"type":331,"tag":396,"props":3503,"children":3504},{"style":426},[3505],{"type":336,"value":3506}," json.",{"type":331,"tag":396,"props":3508,"children":3509},{"style":409},[3510],{"type":336,"value":3511},"encode",{"type":331,"tag":396,"props":3513,"children":3514},{"style":426},[3515],{"type":336,"value":3516},"(body)\n",{"type":331,"tag":396,"props":3518,"children":3519},{"class":398,"line":701},[3520,3524,3529,3534,3539,3544],{"type":331,"tag":396,"props":3521,"children":3522},{"style":403},[3523],{"type":336,"value":3236},{"type":331,"tag":396,"props":3525,"children":3526},{"style":426},[3527],{"type":336,"value":3528}," err ",{"type":331,"tag":396,"props":3530,"children":3531},{"style":403},[3532],{"type":336,"value":3533},"then",{"type":331,"tag":396,"props":3535,"children":3536},{"style":409},[3537],{"type":336,"value":3538}," error",{"type":331,"tag":396,"props":3540,"children":3541},{"style":426},[3542],{"type":336,"value":3543},"(err) ",{"type":331,"tag":396,"props":3545,"children":3546},{"style":403},[3547],{"type":336,"value":3548},"end\n",{"type":331,"tag":396,"props":3550,"children":3551},{"class":398,"line":1043},[3552],{"type":331,"tag":396,"props":3553,"children":3554},{"emptyLinePlaceholder":1394},[3555],{"type":336,"value":1397},{"type":331,"tag":396,"props":3557,"children":3558},{"class":398,"line":1517},[3559,3564,3568,3573],{"type":331,"tag":396,"props":3560,"children":3561},{"style":420},[3562],{"type":336,"value":3563},"r",{"type":331,"tag":396,"props":3565,"children":3566},{"style":426},[3567],{"type":336,"value":585},{"type":331,"tag":396,"props":3569,"children":3570},{"style":409},[3571],{"type":336,"value":3572},"SetRequestBody",{"type":331,"tag":396,"props":3574,"children":3575},{"style":426},[3576],{"type":336,"value":3577},"(encoded)\n",{"type":331,"tag":396,"props":3579,"children":3580},{"class":398,"line":1525},[3581,3585,3589,3594,3598,3602,3606,3610],{"type":331,"tag":396,"props":3582,"children":3583},{"style":420},[3584],{"type":336,"value":3563},{"type":331,"tag":396,"props":3586,"children":3587},{"style":426},[3588],{"type":336,"value":585},{"type":331,"tag":396,"props":3590,"children":3591},{"style":409},[3592],{"type":336,"value":3593},"SetRequestHeader",{"type":331,"tag":396,"props":3595,"children":3596},{"style":426},[3597],{"type":336,"value":429},{"type":331,"tag":396,"props":3599,"children":3600},{"style":432},[3601],{"type":336,"value":1576},{"type":331,"tag":396,"props":3603,"children":3604},{"style":426},[3605],{"type":336,"value":1581},{"type":331,"tag":396,"props":3607,"children":3608},{"style":432},[3609],{"type":336,"value":1586},{"type":331,"tag":396,"props":3611,"children":3612},{"style":426},[3613],{"type":336,"value":440},{"type":331,"tag":332,"props":3615,"children":3616},{},[3617,3619,3625],{"type":336,"value":3618},"The generated Function reference in the editor includes runnable JavaScript\nand Lua examples for every method, including ",{"type":331,"tag":350,"props":3620,"children":3622},{"className":3621},[],[3623],{"type":336,"value":3624},"telegram.answerCallback()",{"type":336,"value":3626}," and\nboth Supabase write builders.",{"type":331,"tag":366,"props":3628,"children":3630},{"id":3629},"next-steps",[3631],{"type":336,"value":3632},"Next steps",{"type":331,"tag":3634,"props":3635,"children":3636},"ul",{},[3637,3645,3653,3660],{"type":331,"tag":3638,"props":3639,"children":3640},"li",{},[3641],{"type":331,"tag":339,"props":3642,"children":3643},{"href":83},[3644],{"type":336,"value":84},{"type":331,"tag":3638,"props":3646,"children":3647},{},[3648],{"type":331,"tag":339,"props":3649,"children":3650},{"href":104},[3651],{"type":336,"value":3652},"Secret service connections",{"type":331,"tag":3638,"props":3654,"children":3655},{},[3656],{"type":331,"tag":339,"props":3657,"children":3658},{"href":268},[3659],{"type":336,"value":269},{"type":331,"tag":3638,"props":3661,"children":3662},{},[3663],{"type":331,"tag":339,"props":3664,"children":3665},{"href":227},[3666],{"type":336,"value":3667},"Durable webhook delivery",{"type":331,"tag":3669,"props":3670,"children":3671},"style",{},[3672],{"type":336,"value":3673},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":318,"searchDepth":489,"depth":489,"links":3675},[3676,3677,3678,3679,3680,3681,3682,3683,3684,3685,3686,3687,3688,3689],{"id":368,"depth":443,"text":371},{"id":570,"depth":443,"text":573},{"id":733,"depth":443,"text":736},{"id":902,"depth":443,"text":905},{"id":1076,"depth":443,"text":1079},{"id":1289,"depth":443,"text":1292},{"id":1629,"depth":443,"text":1632},{"id":1883,"depth":443,"text":1886},{"id":2149,"depth":443,"text":2152},{"id":2533,"depth":443,"text":2536},{"id":2784,"depth":443,"text":2787},{"id":3039,"depth":443,"text":3042},{"id":3358,"depth":443,"text":3361},{"id":3629,"depth":443,"text":3632},"markdown","content:docs:webhooks:functions:18.provider-helpers.md","content","docs/webhooks/functions/18.provider-helpers.md","docs/webhooks/functions/18.provider-helpers","md",{"loc":277},1791655663882]