Blog
Get the right record into your Conversational Email agent
Lessons learnt from Conversational Email implementation in Marketing Cloud Next - Part 1

Have you ever built a Conversational Email in MC Next that works perfectly in Agentforce Builder Preview, then watched every live conversation escalate to a human? That was me lately.
My scenario: a Lead replies to a campaign email, a custom subagent reads the reply and updates the Lead record, and if it can’t, it escalates. The escalation part worked a little too well…
Main conclusion?
Agentforce is the heart of the solution - and the subagent configuration is where it is won or lost.
The trap: the “obvious” variables are empty
Agentforce gives you OOTB Messaging Session variables, including ones that look like they hold the related record Id (Lead Id, Contact Id). I built my update record action around Lead Id, and it turned out to always be empty. Nothing automatically tied a Lead or Contact to a Messaging Session, so the linked variable was faithfully reading an empty field.
What NOT to do
My first instinct was to fix the data - I created a separate Record-Triggered Flow that finds the Lead by the sender’s email (from the Messaging User) and updates the Messaging Session with it. It worked on the record itself, but conversations still escalated.
My understanding is that Agentforce reads that variable the moment the session is created, before the background flow finishes writing. Populating the field with a separate flow just means racing the platform, and you lose.
What actually worked
Just let the agent resolve the record itself. I configured the subagent with its own lookup action - an Autolaunched Flow that takes the Messaging User email (Messaging Platform Key field), uses Search Individual to find the Lead, and returns its Id into a custom conversation variable. The subagent calls this lookup first, then passes the resolved Id into the update action. No background flow, no racing, missing record Id fixed.
It sounds obvious now, but it took longer than I’d like to admit.
One way or another, seeing it run end-to-end on a live email was worth it. Conversational Email unlocks many new use cases and I see huge business value in it. Definitely looking forward to delivering more of them.
I have a few more discoveries which I plan to share in the next article, so stay tuned!