Use this API to register client callback Authentication methods using oAuth or Basic Authentication.
- Conversation Manager
- V3
- Create Orchestration
Conversation Manager APIs
This section provides the requisite APIs needed to create Conversation Manager accounts and to configure conversation workflows. To create the Conversation Manager acccount, use the Conversation APIs in this order when setting up a complete eGain application:
- Authentication
- Client Application
- Participant
- Channel
- Orchestration
- Account
After the account is created you can use the following APIs to send / receive messages.
- Conversation
- Asset
Note: You can configure your system to use third party Bots and third party Channels. The API instructions provided here assume you are using eGain's application setup.
Request
Use this API to configure workflows for conversations between participants (Customer/Agent/Bot applications). New Account API process flow: Authenticiation > Client Application > Participant > Channel > Orchestration > Account
Client application must have 'app.conversation.conversationmgr.manage' scope assigned.
Register new conversation orchestration
details of customer client app, this object must be specified for custom channels.
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/orchestrations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- With Bot
- Without Bot
curl -i -X POST \
https://api.egain.cloud/conversation/conversationmgr/v3/orchestrations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "default_orchestration",
"description": "Created for Custom channel",
"active": true,
"applications": {
"botConfiguration": {
"forwardTranscript": true,
"bots": [
{
"id": "a09dddd6-394b-4039-86bc-a5dd89ee5e8d",
"participant": {
"id": "a09dddd6-394b-4039-86bc-a5dd89ee5e8d"
},
"onEscalation": {
"agent": {
"id": "c09dddd6-394b-4039-86bc-a5dd89ee5e8d"
}
}
}
]
},
"customerConfiguration": {
"customer": {
"id": "b09dddd6-394b-4039-86bc-a5dd89ee5e8d"
}
}
}
}'{ "id": "45a095f4-d0ee-4220-a689-22b541c58f67" }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/orchestrations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.egain.cloud/conversation/conversationmgr/v3/orchestrations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
{ "orchestration": [ { … }, { … } ] }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "45a095f4-d0ee-4220-a689-22b541c58f67", "name": "default_orchestration", "description": "Created for custom channel.", "active": true, "created": "2021-03-21T14:29:01.516Z", "modified": "2021-03-28T14:29:01.516Z", "applications": { "botConfiguration": { … }, "customerConfiguration": { … } } }
Update orchestration
details of customer client app, this object must be specified for custom channels.
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "default_orchestration",
"description": "Created for custom channel.",
"active": true,
"modified": "2021-06-11T23:14:41.836Z",
"applications": {
"botConfiguration": {
"forwardTranscript": true,
"bots": [
{
"id": "a09dddd6-394b-4039-86bc-a5dd89ee5e8d",
"participant": {
"id": "b09dddd6-394b-4039-86bc-a5dd89ee5e8d"
},
"onEscalation": {
"agent": {
"id": "c09dddd6-394b-4039-86bc-a5dd89ee5e8d"
}
}
}
]
},
"customerConfiguration": {
"customer": {
"id": "b09dddd6-394b-4039-86bc-a5dd89ee5e8d"
}
}
}
}'- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api.egain.cloud/conversation/conversationmgr/v3/orchestrations/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'