Recent searches
No recent searches
Web SDK set department programatically.
Posted Dec 20, 2021
This is probably a dumb question, but I'm not finding the answer in the docs.
If I have multiple clients, how do I set the the department, with the web sdk, so that chats get routed to the right agents? Or so that the agent knows which client they may be answering questions for?
I see where to set the name and email, but department says it is not whitelisted. If that adds any clarification for anyone.
0
8
8 comments
Jon Emmett
Bueller? Bueller?
0
Erica Girges
Hi Jonathan!
Apologies for the delay in getting back to you. You could try using this to set:
Then use this to get (if needed):
You can get access to the all of the Web SDK Chat methods here.
Hope this helps!
Best,
Erica - Dev Support
1
Jon Emmett
Hey Erica,
Ok figured that part out, I was just sending the wrong thing.. actually not sending if offline. So a second question.. is it possible to fill the notes of a user programmatically? I do not see anything in the sdk to do that.
image added for clarity.
I want to be able to pass information to my agents, i.e. survey information, client id, etc.
0
Erica Girges
Sorry for the delay! With the holiday last week I was out of the office for a bit. So for the user's notes section you could try to use the Create/Update User [endpoint](https://developer.zendesk.com/api-reference/ticketing/users/users/#create-or-update-user) to add notes with a POST request. You can try doing this maybe by building a small app either built in directly with the Zendesk App Framework or built externally to send the requests. For something like this though, it may just be easier to put together a private Zendesk app with our framework for authentication purposes.
Hope this helps!
Best,
Erica - Dev Support
0
Jon Emmett
Hey Erica Girges! Sorry for my delay I was on vacation. lol. I had looked at that before and it's not what I'm after. I was actually thinking about building a small simple app that would grab that information and pass it to the agent. You are right, that would probably be faster and easier. Thank you!
0
Jon Emmett
Hey Erica Girges I have one last, well hopefully last, question. When I go to build this I'm getting the following from your SDK:
This is in a react functional component implementation. Do you have any idea what it's looking for and how to correct it?
0
Jon Emmett
nevermind.. eslint strikes again.. sigh..
0
Erica Girges
Hope you had a happy holiday! Oh those pesky linter problems. Glad that sorted itself for you! Please don't hesitate to reach out again if anything else comes up.
Best,
Erica - Dev Support
0