getAgentInput()
Returns the string of text which is currently in the agent’s text input area in the chat log of a chat with a specific chat key. Available in API version 29.0 or later.
| Name | Type | Description |
|---|---|---|
chatKey | String | The chatKey associated with the chat for which to retrieve the agent’s input text. |
callback | function | JavaScript method called upon completion of the method. |
This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following properties:
| Name | Type | Description |
|---|---|---|
text | String | The text that is currently in an agent’s text input area. |
success | Boolean | true if getting the agent’s input was successful; false if getting the agent’s input wasn’t successful. |