Build an Agentforce Flex Prompt Template in Salesforce | Peoplewoo Skills

26.05.26 05:04 PM - By Peoplewoo Skills

A Guide to Salesforce Einstein Prompt Builder

Want to elevate your customer experience? With Salesforce Einstein Prompt Builder, you can seamlessly blend CRM data with generative AI to create highly personalized communications. Here is a quick, step-by-step guide to building a dynamic resort newsletter.

  • Step 1: Prep Your Test Data

    Before building, ensure EinsteinSetup is toggled on in your setup menu. Next, head to the App Launcher, open Experiences, and create two new records to use as test data:

    • FamilyKaraokeNight: Set capacity to 50, location to Melody Lounge, and add a fun description.
    • SunriseYoga: Set the location to Cocoa Shore and select the fitness and exercise type.

  • Step 2: Create a Flex Template

    Navigate to PromptBuilder and create a new FlexPromptTemplate named New Guest Newsletter. Flex templates are incredibly powerful because they allow you to link multiple data sources. Under inputs, add two object resources: Reservation and Experience.

  • Step 3: Craft Your Prompt & Add Merge Fields

    In the workspace, define the AI’s persona (e.g., Director of Fun) and outline the newsletter guidelines. To make it dynamic, delete the placeholder text and insert your mergefields:

    • Swap generic greetings with reservation/external guest/firstname.
    • Link specific check-in/out dates and room types.
    • Insert experience/description and experience/location.

  • Step 4: Select Your Model and Test

    Select OpenAIGPT-4OmniMini as your model and hit save. Click Preview, choose a test reservation alongside your "Sunrise Yoga" experience, and watch Einstein instantly generate a beautiful, hyper-personalized welcome letter.

💡 The Takeaway: By connecting live CRM data directly to generative AI templates, you deliver tailored customer experiences with zero manual effort!

Peoplewoo Skills

Peoplewoo Skills