Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build an AI Chef with Salesforce | LWC and Prompt Builder
Rating: 4.4 out of 5(5 ratings)
53 students

Build an AI Chef with Salesforce | LWC and Prompt Builder

Build an End-to-End Project with a Real-World Use Case Using Salesforce Prompt Builder, LWC & Apex
Last updated 4/2025
English
English [Auto],

What you'll learn

  • Prompt Builder for Dynamic AI Responses
  • AI Integration with Salesforce
  • Enhancing User Experience (UX)
  • Salesforce Lightning Web Components

Course content

1 section13 lectures2h 10m total length
  • Introduction2:33

    Build an ai powered chef app in Salesforce using prompt builder and Lightning Web Components to generate three recipe cards from ingredients, dietary restrictions, meal type, and servings.

  • Dev org setup2:36

    Set up a Salesforce developer org with AI features like Prompt Builder and agent force by signing up, confirming your email, resetting your password, and accessing preloaded AI tools.

  • App and Lightning Page Creation5:43

    Create a Salesforce lightning app named chef, customize a pink theme, and add a one-region lightning page. Activate and attach it to the app launcher, then manage tabs and navigation.

  • Prompt Template Creation13:52

    Learn to build an AI chef prompt template in Salesforce LWC, enabling prompt builder, define inputs (ingredients, dietary restrictions, meal type, servings), map data, and test JSON responses.

  • Project Setup and Recipe Form Creation26:28

    Set up a Salesforce LWC project in vscode, create a recipe generator and recipe form, configure fields for ingredients, dietary restrictions, meal type, and servings, and deploy to the org.

  • AIRecipeController Creation14:50

    Create apex class ai recipe controller that accepts ingredients, dietary restrictions, meal type, and servings, caches them as connect API wrapped values, and uses the Einstein prompt template.

  • Fetching Data to LWC From Apex9:32

    Fetch data from Apex to LWC by calling an Apex controller method on button click, using async/await, and map form data to ingredients, dietary restrictions, meal type, and servings.

  • Integrating the Response13:15

    Integrate apex responses into the UI by parsing and validating recipe data, including tags and times, and render recipes with a loading spinner.

  • Recipe Stats14:55

    Create a reusable recipe stat box component displaying prep time, cook time, difficulty, and servings with icons and dynamic parent values, in a four-column layout.

  • Ingredients8:53

    Display and format the recipe ingredients in a two-column layout alongside the instructions, using a bullet list and a responsive grid to show amount, unit, and name for each ingredient.

  • Instructions2:59

    Render instructions on the ui beside ingredients in a lightning layout item, switch to an ordered list with slds list_ordered, and loop through the instructions array to display each item.

  • Chef’s Tips4:55

    Display a chef tip in a styled card with a lightning icon and heading, then render the tip text using a grid layout and styling.

  • Final Touch10:13

    Apply final touches by implementing error handling with user-friendly messages and enforcing input validation, default values, and checks for ingredients and meal type.

Requirements

  • Basic Knowledge of Salesforce
  • Understanding of Lightning Web Components (LWC)
  • Access to a Salesforce Developer Account

Description

Build an AI Chef with Salesforce using LWC, APEX and Prompt Builder

Are you ready to combine the power of Salesforce AI with hands-on Lightning Web Component (LWC) development?

In this practical, project-based course, you’ll build a complete AI-powered Recipe Generator App — your very own “AI Chef.” Whether you're exploring AI integration in Salesforce or aiming to strengthen your LWC skills, this course offers a real-world project you can add to your resume or portfolio.

You’ll build a user-friendly app where users can input:

  • Ingredients

  • Meal type

  • Serving size

  • Dietary restrictions

Once submitted, the app generates three unique, AI-generated recipes using Salesforce Prompt Builder. Each recipe includes:

  • Title and description

  • Prep and cook time

  • Difficulty level

  • Ingredients list and step-by-step instructions

  • Chef’s tip for extra flavor and efficiency

What you’ll learn:

  • Using Salesforce Prompt Builder to create dynamic AI outputs

  • Calling Apex methods from LWC

  • Using ConnectApi to integrate AI with your application

  • Handling errors and displaying feedback to users

  • Managing loading states and form validation

  • Parent-child communication in LWC

  • Best practices for scalable, reusable components

  • Building real-world projects for your portfolio

By the end, you’ll have a fully functional, professional-grade app that’s both showcase-ready and deployable for real business use.

Who this course is for:

  • Salesforce Developers & Administrators
  • Developers Curious About AI Integration
  • Entrepreneurs & Product Managers