Automation library · AI assistants

Generate gender-aware email greetings with OpenAI

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 20 steps, 4 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

20 stepsMedium: a working afternoon
4Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 6Logic 7Service 6

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

  1. 1Structured Output ParserOutput Parser StructuredModel
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Structured Output Parser1Output Parser StructuredModel
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5Contact Tagged in KlickTippKlicktipp triggerStarts it
  6. 6Get First Name and Gender via AI AgentAgentModel
  7. 7Get Gender via AI AgentAgentModel
  8. 8First name presentFilterLogic
  9. 9First name absent, email presentFilterLogic
  10. 10First name probability >= 85%FilterLogic
  11. 11Gender probability >= 85% ?SwitchLogic
  12. 12Gender probability >= 85% ?1SwitchLogic
  13. 13Update Contact in KlickTipp2KlicktippService
  14. 14Route via genderSwitchLogic
  15. 15Update Contact in KlickTipp5KlicktippService
  16. 16Route via gender1SwitchLogic
  17. 17Update Contact in KlickTipp1KlicktippService
  18. 18Update Contact in KlickTippKlicktippService
  19. 19Update Contact in KlickTipp4KlicktippService
  20. 20Update Contact in KlickTipp3KlicktippService

How it's built

Starts on
An event in a connected app
Steps
20, with 4 branches
Size
Medium: a working afternoon
Connects to
Nothing by connector; it calls services over plain HTTP
Model
OpenAI

Questions

What does it need to run?

An n8n account, 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.