Templates / Detect web visitors country by IP address with uProc

Detect web visitors country by IP address with uProc

Needs changes

by Miquel Colomer ✓ · 1,027 views · created 2020-12-28 · Lead Generation

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function Item (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 6 nodes and runs manually, when you click “Execute workflow”. Along the way it connects uProc and AWS SES.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Create IP and Email Item (Function Item): runs custom JavaScript per item (legacy Function Item node)
  2. Get Location By IP (uProc): uses uProc
  3. User in Spain? (If): checks a condition and branches into true / false
  4. Send Spanish Email (AWS SES): uses AWS SES
  5. Send English Email (AWS SES): uses AWS SES

Services it uses

uProcAWS SES

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function Item (legacy) in Create IP and Email Item: replace with Code node, mode 'Run Once for Each Item'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function Item (legacy)
Create IP and Email Item
Code node, mode 'Run Once for Each Item'

Nodes used (5)

From the author

Do you want to know where a web visitor lives? This workflow enriches any lead by IP address using the uProc.io Location By IP address tool and sends an email in Spanish or English depending on the detected web visitor country. You need to add your…

Excerpt from Miquel Colomer's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.