Automation library · CRM

Send weekly Salesforce sales behavior coaching reports

Started by a clock, and works across Gmail and Salesforce. It hands the judgement calls to Groq. 19 steps: a working afternoon to understand properly.

MediumCalls a model: Groq

19 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 9Service 6

The steps in the order they run, from what starts it.

  1. 1Start WorkflowSchedule triggerStarts it
  2. 2LLM ModelLm Chat GroqModel
  3. 3AI Output SchemaOutput Parser StructuredModel
  4. 4Get userSalesforceService
  5. 5Generate AI Coaching InsightsChain LlmModel
  6. 6Get Opportunity MetadataSalesforceService
  7. 7Merge AI Output + Chart URLMergeLogic
  8. 8Fetch OpportunitiesSalesforceService
  9. 9Flatten AI OutputCodeLogic
  10. 10Build Opportunity ID ListCodeLogic
  11. 11Merge Opportunities + ActivitiesMergeLogic
  12. 12Prepare Email Report FieldsSetLogic
  13. 13Fetch Tasks for OpportunitiesSalesforceService
  14. 14Fetch Events for OpportunitiesSalesforceService
  15. 15Compute Opportunity Activity MetricsCodeLogic
  16. 16Send Weekly Coaching EmailGmailService
  17. 17Merge Tasks + EventsMergeLogic
  18. 18Aggregate Metrics Per Sales RepCodeLogic
  19. 19Generate Performance Chart URLCodeLogic

How it's built

Starts on
A clock
Steps
19
Size
Medium: a working afternoon
Connects to
Gmail, Salesforce
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Gmail and Salesforce accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Groq. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 19 steps before you point it at anything that matters.