public final class ConverseService extends Object
Modifier and Type | Method and Description |
---|---|
static fr.paris.lutece.util.ReferenceList |
getApiVersions()
Returns the list of managed API versions
|
static String |
getBotApiEntryPointUrl(String strBotKey,
String strServerUrl,
int nApiVersion)
Build the entry point URL
|
static List<fr.paris.lutece.plugins.chatbot.business.BotPost> |
getBotResponse(String strMessage,
String strConversationId,
String strBotApiEntryPointUrl,
String strErrorMessage,
Locale locale)
Get responses from the bot
|
public static List<fr.paris.lutece.plugins.chatbot.business.BotPost> getBotResponse(String strMessage, String strConversationId, String strBotApiEntryPointUrl, String strErrorMessage, Locale locale)
strMessage
- The message from the UserstrConversationId
- The conversation ID (or UserID)strBotApiEntryPointUrl
- The URL of the Bot APIstrErrorMessage
- Error message sent by the bot if the connection failslocale
- The locale The localepublic static fr.paris.lutece.util.ReferenceList getApiVersions()
Copyright © 2020 City of Paris. All rights reserved.