Not able to post contents or responses in the chat text area.. Facing error while calling "chat.postToChatTextArea" API..
Hello..
Not able to post the contents or generated responses in the Agent chat text area.. In the console, I'm facing the below error after running the app..
So, How to post the contents in the Agent chat text area.. or is there any other API call in ZAF..
Thank you..
-
Hi Abdul,
Assuming you have Agent Workspace enabled, there is no chat sidebar location. So those Apps Chat APIs are not available. To add text to the chat editor when Agent Workspace is enabled, use the Apps Support API to set comment.text
-
Thank you Christopher Kennedy
Its working :)
But, I generated 3 separate responses using a private app, but when it is posted in Agent chat text area, it is pasted as a single text.. I want to post the 3 responses as a separate response in the Agent text area (able to click 3 responses separately).. So that, the Agent will choose the best one out of it.. So, For this type of requirement, Can I use the same Apps support API.. Is there any functionality on that..Thanks again :)
-
Hi Abdul,
Glad to hear it's working! It would be cleaner to handle to agent selection within the UI of your app. Then the app can provide the selected text to the editor using the Apps Support API.
-
Thanks again Christopher Kennedy....
Yes.. I also executed in the same way.. :)
I'm in final stage of my app building, and I have another 2 queries..
Query 1: Whenever user send a message in the Chat area, It should be automatically copied and pasted into the Query text box, which is in the UI of the app.. Whether its possible to copy the user message automatically and pasted into the text box of my app?
Query 2: So, after generating the responses it will be previewed in the UI, and the Agent will choose any one of it.. Then, it will be pasted into the Agent text editor area.. And My requirement is, When Agent click the send button, the field or text boxes and generated responses all should be refreshed or cleared.. How to make this interaction..
So, can you please suggest any Zendesk API calls there for these 2 requirements..
-
Hello Christopher Kennedy....
Hope you are doing well... :)
Just a follow-up for the above 2 queries... Looking forward for your suggestions...
Thank you..
-
Hi Abdul,
I hope you're doing well also. For both of these requirements, the app will need to listen to changes to ticket.conversation. Whenever the end-user or agent sends a message, the ticket conversation is updated to include the new message. Use the ticket.conversation.changed framework event to listen for these changes.
-
Thank again... Christopher Kennedy
I got that.. :)
Meanwhile, a last query.. Its for integrating Google authentication for users...
I just created a separate route file (by defining routes for Google authentication) and also I mentioned the redirecting URI with that..
So, from Initial sign-in page, it is going successfully to Google authentication page.. Then, after successful login, its redirecting to the mentioned URI, but the Homepage is not rendering in the Zendesk..
ie, After running the file, the initial sign html page is rendering in the zendesk account.. But, after google authentication I need to render the Homepage html page, but its not rendering even successful authentication..
Sometimes, it is showing internal error or cannot GET /defined route, something like that.. So, can you please provide some suggestions for the above problem..
Please sign in to leave a comment.
7 Comments