Automate weekly timesheet reporting with Salesforce, OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on a schedule (every week). Along the way it connects Salesforce, Gmail and OpenAI.
How it runs
Trigger: On a schedule (every week).
- Timesheet (Salesforce): get many (custom object)
- Salesforce: get (custom object)
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Merge: merges the data from its input branches
- Salesforce: get (custom object)
- Prepare Pending Section (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 7 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Salesforce + Gmail templates (24) · Other Salesforce + OpenAI templates (24)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Salesforce
n8n-nodes-base.salesforce - Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - Merge
n8n-nodes-base.merge - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
Weekly Timesheet Report + Pending Submissions Workflow Overview This workflow automates the entire weekly timesheet reporting cycle by integrating Salesforce, OpenAI, Gmail, and n8n. It retrieves employee timesheets for the previous week, identifies which…