This page was last edited on October 13, 2017, at 14:44.
Comments or questions about this documentation? Contact us for support!
Type: builtin
Updated in: 8.5.109
This service is responsible for receiving the GMS request and providing a URL to start the chat interaction. This is a basic chat service which helps a customer application to contact the call center. It has the following characteristics:
For further details, refer to the Chat API Version 1 page.
This API allows the application to create basic chat service session and then initiate chat interaction immediately or when user is ready.
Method | POST | ||
---|---|---|---|
URL | /genesys/1/service/request-chat | ||
Parameter | Type | Mandatory | Description |
URI Parameters | |||
'request-chat' | String | yes | Name of the preconfigured basic chat service |
Body: The body will be x-www-form-urlencoded form consisting of different items representing the key/value pairs associated with the request. | |||
Body Properties: The following are the properties:
|
HTTP code | 200 |
---|---|
HTTP message | OK |
Body | A chat JSON object for details on the properties of the object. See the section on data structures for more details. |
Notes | None |
HTTP code | 503 |
---|---|
HTTP message | Service Unavailable |
Body | None |
Notes | This is send if the service has not sent a notification to the application that an agent is available. |
Example Request:
POST http://localhost:8080/genesys/1/service/request-chat HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/x-www-form-urlencoded
_verbose=true
Response:
HTTP/1.1 200 OK
Date: Sun, 10 Jun 2012 07:49:46 GMT
Pragma: no-cache
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(7.6.0.v20120127)
{
"_chatIxnAPI-CREATE-URL":
"/genesys/1/service/81f0ef4e-99dd-43ea-8366-8d27a2cbd605/ixn/chat",
"_id":"81f0ef4e-99dd-43ea-8366-8d27a2cbd605"
}
The following are the configuration options that are defined for this service:
Section: request-chat
Default Value: 3600
Valid Values: Any positive integer
Changes Take Effect: Immediately
This option is mandatory.
Specifies the default time to live for the chat interaction in seconds.
Section: request-chat
Default Value: gms_builtin
Valid Values: String
Changes Take Effect: Immediately
The endpoint configured on the Chat Server that will be used to submit Chat interactions for this service.