Contact Us

February 10, 2025

May 13, 2026 2:20 pm

Resolving the Missing ‘Reservation’ Variable in Einstein AI Flows

Share with

Understanding the Issue

The issue arises because the lab result appears successful, but the ‘Reservation’ variable is still missing. The community member had reviewed the flow, created a new version, and activated it, but the issue persisted.

Upon further investigation, it was discovered that the lab does not request the creation of the ‘Reservation’ variable, but it is still expected by the flow.

Root Cause of the Issue

The root cause of this issue is that the lab instructions do not explicitly state the need to create the ‘Reservation’ variable, leading to confusion and errors.

Step-by-Step Solution

To resolve this issue, follow these steps: create the ‘Reservation’ variable in the flow with ‘Record’ as the data type and ‘Available for input’ selected.

Here is an example of how to create the variable:

Flow Variable Definition

var reservation = 'Reservation';
var recordType = 'Record';

After creating the variable, review and activate the flow to ensure that the issue is resolved.

Best Practices and Next Steps

When working with Einstein AI flows, it is essential to carefully review the lab instructions and ensure that all variables are created as required.

Heads up: always double-check the flow variables to avoid errors and ensure successful flow execution.

Checklist for Resolving the Issue

Checklist for Resolving the Missing ‘Reservation’ Variable Issue

  • Review the lab instructions carefully to ensure that all variables are created as required.
  • Create the ‘Reservation’ variable in the flow with ‘Record’ as the data type and ‘Available for input’ selected.
  • Review and activate the flow to ensure that the issue is resolved.
  • Double-check the flow variables to avoid errors and ensure successful flow execution.
  • Test the flow to ensure that it is working as expected.

Frequently Asked Questions

What is the ‘Reservation’ variable used for in the flow?

The ‘Reservation’ variable is used to store the reservation data in the flow.

Why is the ‘Reservation’ variable not created by default in the flow?

The ‘Reservation’ variable is not created by default in the flow because the lab instructions do not explicitly state the need to create it.

How do I know if I have created the ‘Reservation’ variable correctly?

You can verify that you have created the ‘Reservation’ variable correctly by reviewing the flow variables and ensuring that the ‘Reservation’ variable is listed with ‘Record’ as the data type and ‘Available for input’ selected.

What are the consequences of not creating the ‘Reservation’ variable in the flow?

If you do not create the ‘Reservation’ variable in the flow, you may encounter errors and issues with the flow execution.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert