...
The bot configuration resides in mongo db, in the collection called "botconfigurations".
...
Property
...
Type
...
Description
...
Notes
...
Localizable
...
_id
...
Status | ||
---|---|---|
|
...
Unique bot identifier
...
technology
...
Status | ||
---|---|---|
|
...
Technology used by the bot
...
It can take on one of the following values:
“DF” (Dialog Flow)
“PAT”
...
nickname
...
Status | ||
---|---|---|
|
...
Virtual agent nickname shown by the chat interface when a reply message is received from the bot
...
...
configuration
...
Status | ||
---|---|---|
|
...
String in JOSN format containing the bot configuration parameters
...
It varies based on the bot technology
...
inactivityTimeoutInSeconds
...
Status | ||
---|---|---|
|
...
Number of seconds to wait for a message from the customer to the bot after which the chat is automatically ended
...
If not configured, the default value is 300 seconds.
...
welcomeMessage
...
Status | ||
---|---|---|
|
Status | ||
---|---|---|
|
...
Message shown in chat when a bot enters the room
...
Can be localized.
Accepts a string representing the label to be displayed or an object whose key is the country code and whose value is the relative label to be displayed.
Example:
{
"it-it" : "L’operatore virtaule è entrato in chat",
"en-gb" : "Virtual agent is online"
}
...
X
Example
Each bot is configured through an object with the properties described here Bot Configuration Object
Example
Code Block | ||
---|---|---|
| ||
{ "_id" : "BOT1", "technology" : "DF", "nickname" : "Bot 1", "configuration" : "{\"type\":\"service_account\",\"project_id\":\"bot1-dfc4a\",\"private_key_id\":\"6bf906784139d3d34e6cd6d78e06acae942535bb6bf906784139...\",\"private_key\":\"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDbiCNAeWL2Lf3l\\n88FQAIc3xZqLs9PytcMsTKiZLPJh8DKZ/kVZS25K464ZVvpYozR0zV7vYhEbMCbd\\nc+du8t2XU4C/qfMFfKgEZKxGav7iCmrLECNKgu9TH27G21r4SYxi3wEJGQWwNdUG\\nyLHVzvZ5tmFQchFXTJ7ho74MmMJnhicMfjB2Rtta2A8zX15hnHl9NLShA0pXI0aN\\nxGfxcZrNdqyg7sL9DUG8vQFANCVFIPImRj1ysS8CqpjWHDkqhon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tiZDuTk\\nyswCHHdyEvU4Y3h1DvffvDVj7BN1NFusla7MkhBVdYCEm6XpV6AYZ2Lw7ewWWPl+\\nVKuVXuCZlG+B/4kIrQY6nln06RalxBUt/R+tredP4QKBgH2TmQQ6hjmdAXb2cT5/\\nrT5nLVE3gPbAmf561v7hKOSXVqjIwxjXBFkHngSCD/Njizk0w8GAGguvras/nQ4d\\naSTzBqprJKzAc2PwjzXt5ELAmLe27tA8gMlF7hCPnxG53Swf6OxjPWQrHbVQAioP\\nI5Jtqi4NMA3nsbxXkVT0lp3P\\n-----END PRIVATE KEY-----\\n\",\"client_email\":\"nuovoserviziobot@bot1-dfc4a.iam.gserviceaccount.com\",\"client_id\":\"116835411680007641352\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"token_uri\":\"https://oauth2.googleapis.com/token\",\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"client_x509_cert_url\":\"https://www.googleapis.com/robot/v1/metadata/x509/nuovoserviziobot%40bot1-dfc4a.iam.gserviceaccount.comnMIIEvgIBADANBgkqhkiG9w...\"}", "inactivityTimeoutInSeconds" : 300, "welcomeMessage" : { "it-it" : "L'operatore virtuale è entrato in chat", "en-gb" : "Virtual agent is online", "default" : "L'operatore virtuale è entrato in chat" } } |