I am wondering why, in the 'Add a Flow to Your Prompt Template' module, specifically in the Flow, we need to create those two single record variables that we make available for input. It doesn't seem like we leverage or store anything inside of them. Could anyone explain why these two variables are crucial? The two single record variables in questions are: - Experience - Reservation Thanks in advance!
I am from the Trailhead Help team.
Simply put, the two record variables are designed to receive input from the user. Once the input is captured, it is passed to the prompt template, where the data is processed.
In the "Build a Flex Prompt Template" unit, the input is taken directly from the prompt, and flow is not used.
However, in the "Add a Flow to Your Prompt Template" unit, we incorporate the flow, which is why the record-type variables come into play.
I hope this explanation clarifies things for you!
@Ajaypreet Singh Saini Right, but you could do that before without even building the Flow, based on the related inputs you selected when creating the Flex Template.
Ajaypreet Singh Saini (Grantbook) Forum Ambassador
Hey @Christopher Burt, these values will passed while doing testing the prompt as an input in the module
Test the Prompt
- In the Reservation field type, er. Select any reservation.
- In the Experience field type, Family. Select Family Karaoke Night.
- Click Preview.
- Take a look at the output of your prompt template.
- Click Activate.