Automation library · CRM

Analyze Slack pipeline attachments with E2B and OpenAI

Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI. 15 steps: a working afternoon to understand properly.

MediumCalls a model: OpenAI

15 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 1Service 11

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

  1. 1OpenAI GPT-4o ModelLm Chat Open AiModel
  2. 2Run Analysis Code in E2BE2b ToolService
  3. 3When Slack Mentions the BotWebhookStarts it
  4. 4Pipeline Analyst AgentAgentModel
  5. 5Add Eyes Reaction in SlackSlackService
  6. 6Ensure Chart Exists in SandboxE2bService
  7. 7Fetch Recent Channel UploadsHttp RequestService
  8. 8Download Chart from SandboxE2bService
  9. 9Resolve Attachment and QuestionCodeLogic
  10. 10Reply in Slack Thread with ChartSlackService
  11. 11Get File Metadata in SlackSlackService
  12. 12Kill E2B SandboxE2bService
  13. 13Create E2B Analysis SandboxE2bService
  14. 14Download Attachment from SlackHttp RequestService
  15. 15Upload Attachment to SandboxE2bService

How it's built

Starts on
Another system calling it
Steps
15
Size
Medium: a working afternoon
Connects to
Slack
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

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

How long does it take to set up?

Plan an afternoon. 15 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 15 steps before you point it at anything that matters.