Salesforce Platform · Lightning Components

Integrate Prompt Templates Into LWCs

Connect a prompt template to a Lightning web component so users see generated summaries or insights, such as a sentiment read-out, directly on a record page.

17 tasks
Method

How MeshMesh does it

  1. Builds an Apex controller and test classes that call a prompt template through ConnectApi.
  2. Builds the LWC, plus supporting pieces such as a schema helper and a permission set where the job needs them.
  3. Builds a prompt flow behind the component when the card needs one.
  4. Deploys and fixes deploy, API and runtime errors across turns.
  5. When the model returns plain text instead of formatted output, adds a client-side formatter.
  6. Verifies the component end to end and, in some cases, writes a setup guide.

For the broader component work, see Build Custom LWC Components.