Newer Version Available

This content describes an older version of this product. View Latest

Direct-to-Agent Routing Code Sample

Implement direct-to-agent routing using the Deployment API.

The following code sample shows you how to set up direct-to-agent so your agents can send visitors a “Chat with Me” link.

When you use this code sample with your org and call it ChatWithMe, agents can create a link that sends a chat request directly to them.

http://your.website/ChatWithMe?id=005D01234567890

You can make it even easier for agents to send a “chat with me” link by creating a Quick Text message that any agent can use:

http://your.website/ChatWithMe?id={!User_ID}

The User ID spot in the link is automatically filled with the User ID of any agent who uses the Quick Text.