Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.

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!   

3 answers
  1. Feb 26, 7:33 PM

    Hi @Christopher Burt

     

     

    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!

  2. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    Feb 24, 8:03 PM

    Hey @Christopher Burt, these values will passed while doing testing the prompt as an input in the module

     

    Test the Prompt

    1. In the Reservation field type, er. Select any reservation.
    2. In the Experience field type, Family. Select Family Karaoke Night.
    3. Click Preview.
    4. Take a look at the output of your prompt template.
    5. Click Activate.
0/9000