Create bot messages
Create channel-specific bot messages.
始める前に
Role required: admin
手順
Bot message implementation
Use the bot messages API to implement channel-specific bot messages.
Bot message API
Use the following API to incorporate bot messages into your custom chat integration.
Example: Bot message
implementation
function getBotMessage(providerId, inboundId, botMessageName) {
// fetch the bot message using bot messages api
var botMessages = sn_cs.VASystemObject.getAllBotMessages(providerId, inboundId);
if (botMessages && botMessages[botMessageName]) {
var botMessage = botMessages[botMessageName];
botMessage = botMessage.trim();
if (botMessage) {
return botMessage;
}
}
}