Automation library · Chat assistants

Triage legal conflict checks from Slack with OpenAI

Started by an event in a connected app, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI. 20 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

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

The flow

Starts it 2Model 3Logic 8Service 7

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

  1. 1When Slack Message ReceivedSlack triggerStarts it
  2. 2OpenAI GPT-4 ModelLm Chat Open AiModel
  3. 3MCP Client ProcessorMcp Client ToolModel
  4. 4Fetch Client DataGoogle Sheets ToolService
  5. 5Fetch Matter DataGoogle Sheets ToolService
  6. 6Fetch Party DataGoogle Sheets ToolService
  7. 7Fetch Related Entities DataGoogle Sheets ToolService
  8. 8Prepare Authenticated InputCodeLogic
  9. 9Detect Conflict AgentAgentModel
  10. 10When MCP Server ActivatedMcp triggerStarts it
  11. 11Generate Event KeyCodeLogic
  12. 12Analyze Conflict DataCodeLogic
  13. 13Read Events from SheetsGoogle SheetsService
  14. 14Evaluate Potential ConflictIfLogic
  15. 15Check Duplicate StatusIfLogic
  16. 16Build Conflict Alert MessageCodeLogic
  17. 17Build No Conflict MessageCodeLogic
  18. 18Prepare Agent Data InputCodeLogic
  19. 19Post Slack Thread ReplySlackService
  20. 20Append Log to SheetsGoogle SheetsService

How it's built

Starts on
An event in a connected app
Steps
20, with 2 branches
Size
Medium: a working afternoon
Connects to
Google Sheets, Slack
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

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. 20 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 20 steps before you point it at anything that matters.