Hello Guys,
I am using accApi and trying to open an agent from LWC but facing issue as the agent is not opening only the agentforce window is opening - after that as i select the agent -conversation starts.
So basically in the lwc :
1. i am calling -- import { open, execute, close } from 'lightning/accApi';
2. and after getting the agent id from my apex class i doing below :
await open(this.resolvedBotId); // i am getting the id from apex.
console.log('Agent panel opened successfully.');
const utterance = "Start";
await execute(utterance, this.resolvedBotId);
console.log('Agent successfully invoked with utterance:', utterance);
But i can open the agent window but proper agent is not selecting.
#Agentforce #LWC #AgenticAI
I feel this Implementation is still not perfect as it lands on Default agentforce agent