← All N8N workflows
Data & databasesAirtableCodeGmailHtmlSchedule Trigger

New order is sent to the Webhook via POST with params {orderID, orderPrice}

Configured with Airtable, Gmail, Html, Schedule Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerEveryday at 7PMSchedule TriggerData storeAirtable Get Today'sOrdersAirtableCodeYesterday DateCodeTransformHTMLHtmlTransformSet Order FieldsEdit FieldsMessagingSend to GmailGmailData storeStore OrderAirtableTriggerWebhookWebhook

Node categories in this workflow

  • Trigger
  • Data store
  • Code
  • Transform
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Everyday at 7PMTriggerSchedule TriggerSee node parameters
Airtable Get Today's OrdersData storeAirtablesearch
Yesterday DateCodeCodeSee node parameters
HTMLTransformHtmlSee node parameters
Set Order FieldsTransformEdit FieldsSee node parameters
Send to GmailMessagingGmailSee node parameters
Store OrderData storeAirtablecreate
WebhookTriggerWebhookSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • airtableTokenApi
  • gmailOAuth2

Workflow notes

Aggregate Daily Orders with Airtable

Aggregate Daily Orders with Airtable

This workflow will collect order data as it is produced, then send a summary email of all orders at the end of every day, formatted in a table.

Setup:

  1. Create a new table in Airtable and give it a field time with type date, orderID with type number, and orderPrice also with type number.
  2. Create a new access token if you haven't already at https://airtable.com/create/tokens/new. Make sure to give the token the scopes data.records:read, data.records:write, schema.bases:read and access to whichever table you choose to store the orders. A pop-up window appears with the token. Use this token to make Create New Credential > Access Token for Airtable in the Store Order and Airtable Get Today's Orders nodes.
  3. Create access credentials for your Gmail as described here: https://developers.google.com/workspace/guides/create-credentials. Use the credentials from your client_secret.json in the Send to Gmail node.
  4. In the Store Order node, change Base and Table to the database and table in your Airtable account you wish to use to store orders. Make sure to use these same values in the Airtable Get Today's Orders node.
  5. Every time an order is created in your system, send a POST request to Webhook from your order software. Each request must contain a single order containing fields 'orderID' and 'orderPrice' (or, edit Set Order Fields to select which incoming fields you wish to save)
  6. Change the schedule time for sending email from Everyday at 7PM to whichever time you choose.

Test:

  • Activate the workflow.
  • From the node Webhook, copy Production URL
  • Send the following CURL request to the URL given to you: curl -X POST -H "Content-Type: application/json" -d '{"orderID": 12345, "orderPrice": 99.99}' YOUR_URL_HERE
  • It should say Node executed successfully. Now check your Airtable and confirm the order was stored in the right place.
Sticky Note4
  • New Order!
Sticky Note5
  • It's 7PM!
New order is sent to the Webhook via POST with params {orderID, orderPrice}

New order is sent to the Webhook via POST with params {orderID, orderPrice}

Purpose and structure

This folder contains the New order is sent to the Webhook via POST with params {orderID, orderPrice} workflow. Its executable nodes use airtable, code, gmail, html, scheduleTrigger, set, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Everyday at 7PM, Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/0571_Code_Webhook_Send_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • New order is sent to the Webhook via POST with params {orderID, orderPrice}
  • Daily summary sent to email at 7PM

More in Data & databases