Use this API to register client callback Authentication methods using oAuth or Basic Authentication.
- Conversation Manager
- V3
- Delete Participant
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.
Create participant
Type of participant. eGain Bot participants are created automatically when bot is created in eGain VA application.
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/participants
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Participants with Intent
- Participants without Intent
curl -i -X POST \
https://api.egain.cloud/conversation/conversationmgr/v3/participants \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "custom_bot_participant",
"type": "custom_bot",
"active": true,
"application": {
"id": "9d091084-3ca8-4afc-97e1-8b0ad52fc38f"
},
"intents": {
"intent": [
{
"value": "order_complaints",
"displayValue": "Order Complaints"
},
{
"value": "sales_enquiries",
"displayValue": "Sales Enquiries"
}
]
}
}'{ "id": "45a095f4-d0ee-4220-a689-22b541c58f61" }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/participants
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.egain.cloud/conversation/conversationmgr/v3/participants \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
{ "participant": [ { … }, { … } ] }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/participants/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.egain.cloud/conversation/conversationmgr/v3/participants/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "ae103957-9c82-4fa8-a34e-925be85e06ec", "name": "custom_bot_participant", "type": "custom_bot", "active": true, "application": { "id": "9d091084-3ca8-4afc-97e1-8b0ad52fc38f" }, "created": "2021-03-06T21:16:36.838Z", "modified": "2021-03-06T21:16:36.838Z" }
Update participant
Type of participant. eGain Bot participants are created automatically when bot is created in eGain VA application.
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/participants/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api.egain.cloud/conversation/conversationmgr/v3/participants/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "custom_bot_participant",
"type": "custom_bot",
"active": true,
"application": {
"id": "9d091084-3ca8-4afc-97e1-8b0ad52fc38f"
},
"modified": "2021-03-06T21:16:36.838Z"
}'- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/participants/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api.egain.cloud/conversation/conversationmgr/v3/participants/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'