route to particular queue based on customer intent from agentforec agent.can anyone guide please.Thank YOU !
1 answer
Hi @A Jagadeeswari - Use Agentforce Topic + Agent Action + Flow.
- Create queues in Salesforce, for example: Billing Queue Technical Support Queue Sales Queue
- Create an autolaunched Flow with input variable: customerIntent
- In the Flow, use a Decision: If intent = Billing, update Case Owner to Billing Queue If intent = Technical Support, update Case Owner to Support Queue If intent = Sales, update Case Owner to Sales Queue
- Add this Flow as an Agent Action in Agentforce.
- In the Agentforce topic instructions, mention: “Identify the customer intent and call the routing action with the correct intent value.”
Best practice: store intent-to-queue mapping in Custom Metadata, not hardcoded Queue Ids.
For chat/messaging routing, use Omni-Channel. For Case/Lead routing, Flow updating OwnerId to Queue is enough.