+ Start a Discussion

Einstein Chat Bot - Getting error 'No Agent available' when Calling Apex class

I configured Einstein Bot and getting all responses from it.
If I try to add a Apex call to fetch some data. Getting message 'No Agent available'
I already added the permission set to that Apex class. 
What else can be the reason ?

Gaurav Seth
VinayVinay (Salesforce Developers) 
Hi Gairav,

You might need to create 2 queues. The bot and agents should be in one queue (this will be used for the handoff from bot to agent. The other queue is only for agents and what your code should query for agent availability.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Vinay Kumar
Hi Vinay,
I am not looking for any agent help.
I added a apex call in Action . I have 2 queues already and added them as Channel in Overview configuration of Einstein Bot.

My Einstein bot respond all activities. But when there is action for Apex call, I am getting message "No agents are available.".

What can be the reason for this ?

Gaurav Seth
Serhii SkorometsSerhii Skoromets
If question is still relevant:
I just had the same issue. The thing is that I forgot to add my Apex Class to sfdc.chatbot.service.permset at Permission Sets.
Hope it'll help someone.