Function Workflow

Automated workflow: Function Workflow. This workflow processes data and performs automated tasks.

Integrations Used (3)

Workflow Structure (9 nodes)
100%
Cron
Trigger Every Day at 8am
Function
Get Start & End of day
Stop And Error
Error Handler
Google Calendar
Get Todays Events
Split In Batches
Split Events In Batches
Set
Set Trello Card Details
If
Remove Recurring Tasks
Trello
Create Trello Cards
No Op
Delete Task
Node Types:
code
transform
logic
action
default
trigger
Requires credentials

Prerequisites

Required Credentials (2)

Google Calendar

Used by: Get Todays Events

Docs

Trello

Used by: Create Trello Cards

Docs

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~45 min
Score: 70/100
Custom Code
Conditional Logic
Loops
5 Integrations

When to Use This Workflow

Scheduled Operations

Run automated tasks at specific times - daily reports, weekly cleanups, monthly backups.

Set it and forget it - reliable automation that runs on your schedule.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "nodes": [
    {
      "name": "Get Start & End of day",
      "type": "n8n-nodes-base.function",
      "position": [
        850,
        450
      ],
      "parameters": {
        "functionCode": "var curr = new Date;\nvar first = (curr.getDate());\nvar last = first;\n\nvar firstday = new Date(curr.setDate(first));\nvar lastday = new Date(curr.setDate(last));\n\nbeginning = new Date(firstday.setHours(0,0,0,0));\nending = new Date(lastday.setHours(23,59,59,99));\n\nitems[0].json.from = beginning.toISOString();\nitems[0].json.to = ending.toISOString();\n\nreturn items;items[0].json.myVariable = 1;\nreturn items;"
      },
      "typeVersion": 1,
      "id": "1b9e77d2-2c9f-43d0-ad85-4c47ba802575",
      "notes": "This function node performs automated tasks as part of the workflow."
    },
    {
      "name": "Set Trello Card Details",
      "type": "n8n-nodes-base.set",
      "position": [
...

Workflow Details

Nodes
9
Trigger
Scheduled
Source
community
Added
Sep 29, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Datetime Workflow

Automated workflow: Datetime Workflow. This workflow processes data and performs automated tasks.

Cron
Google-calendar
Emailsend
13 nodesScheduled

Google Cal to Zoom meeting

Automated workflow: Google Cal to Zoom meeting. This workflow processes data and performs automated tasks.

Zoom
Google-calendar
Cron
7 nodesScheduled

Googlecalendar Workflow

Automated workflow: Googlecalendar Workflow. This workflow processes data and performs automated tasks.

Google-calendar
Slack
Cron
13 nodesScheduled

Daily Language Learning

Automated workflow: Daily Language Learning. This workflow processes data and performs automated tasks.

Cron
Hackernews
Lingvanex
Airtable
9 nodesScheduled

Set Workflow

Automated workflow: Set Workflow. This workflow integrates 10 different services: stickyNote, httpRequest, code, schedul...

Schedule
Http-request
Gmail
Google-calendar
12 nodesScheduled

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 11 different services: stickyNote, httpRequest, cod...

Schedule
Http-request
Gmail
Google-calendar
12 nodesScheduled