Salesforce Platform · Lightning Components17 tasks
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.
Method
How MeshMesh does it
- Builds an Apex controller and test classes that call a prompt template through ConnectApi.
- Builds the LWC, plus supporting pieces such as a schema helper and a permission set where the job needs them.
- Builds a prompt flow behind the component when the card needs one.
- Deploys and fixes deploy, API and runtime errors across turns.
- When the model returns plain text instead of formatted output, adds a client-side formatter.
- Verifies the component end to end and, in some cases, writes a setup guide.
For the broader component work, see Build Custom LWC Components.