What I Learned Calling Agentforce from Apex (and Getting Structured JSON Back)

I started this project with what sounded like a small goal: call an Agentforce agent from a Lightning Web Component and show the reply in my own UI. The first API call wasn’t the difficult part. The interesting work began after that: The finished app is a Lightning Web Component backed by an Apex controller…. Continue reading