Latenode

Scenario for sending an email to a travel agency client who has just booked a tour

In this article, we will set up a script in Latenode to send an email to a travel agency client who has just booked a tour.

The scheme of such a scenario is simple: we know about the client his gender, age, from which city and to which city he is planning a trip. Based on these data, we will prepare an email text to tell him where to go and what to see when he arrives in town. Here's an example of the text that ChatGPT will prepare:

Updated May 12, 2026Est. run: 15sEst. cost: $0.0009
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →

Workflow preview

What this template does

  • Scenario for sending an email to a travel agency client who has just booked a tour
  • Connects Mailgun, ChatGPT in one automated workflow.
  • Moves data between Mailgun and ChatGPT without manual copying.
  • Reduces repetitive work with reusable low-code automation.
  • Gives teams a production-ready scenario they can adapt in minutes.

How it works

1
Trigger

Capture data from Mailgun

The workflow starts when Mailgun sends a new event or updated record into Latenode.

2
Action

Use ChatGPT

Latenode passes the prepared payload into ChatGPT to keep the process moving without manual work.

Setup guide

1

Connect Mailgun

Authorize Mailgun in Latenode and confirm the workflow has access to the source or destination resource it needs.

2

Connect ChatGPT

Authorize ChatGPT in Latenode and confirm the workflow has access to the source or destination resource it needs.

3

Map your fields and prompts

Review the input data, destination fields, and any AI instructions before enabling the scenario.

4

Test and deploy

Run the scenario with sample data, validate the output, and then switch the template on for production use.

Requirements

An active Mailgun account connected to Latenode
An active ChatGPT account connected to Latenode
Permission to access the source records or destination resource used by the workflow
A sample run or test record to validate the automation before launch

FAQ

Common questions about this template

It turns the workflow described in the source article into a reusable Latenode template that connects Mailgun, ChatGPT with prebuilt automation logic.