Userbot 1.0.0

To start the communication with Userbot, an apiLogin [apikey] command is necessary, using the apikey received from Userbot. Then, a sitekey undefined [bot_argument] command, in order to use the other APIs for the specific bot. The who command is important to get information about the logged user, especially the id of the user, that is used in the robin commands, for chat information

  • #chatusers
  • #bot
  • #automated-messages
  • #stats
  • #nps
  • #login
  • #apiLogin
  • #sitekey
  • #qeafilter
  • #chat
  • #chat-notification
  • #intel
  • #meetings

Servers

  • ai.userbot.aiwssproduction

    Once the socket is open and you are autenthicated you can subscribe to a public channel by sending a subscribe request message.

Operations

  • PUB bot.get-vars

    Get Bot variables' list

    Operation IDbot.get-vars.request
    • #bot

    Accepts the following message:

    BotGetVarsRequest

    Examples

  • SUB bot.get-vars

    Operation IDbot.get-vars.response
    • #bot

    Accepts the following message:

    BotGetVarsResponse
    allOf
    uid: BotGetVarsResponsePayload

    Examples

  • PUB chatusers.get

    Send messages to the API

    Operation IDchatusers.get.request
    • #chatusers

    Accepts the following message:

    ChatUsersGetRequest

    Ask a list of chat users

    Client can ask to the server the list of users that interacted with a given bot, based on offset and limit parameters. This is because there is infinite scrolling on the dash USERS and the data needs to be limited

    object
    uid: ChatUsersGetRequestPayload
    • #chatusers

    Examples

  • SUB chatusers.get

    Messages that you receive from the API

    Operation IDchatusers.get.response
    • #chatusers

    Accepts the following message:

    ChatUsersGetResponse

    List the chat users of a single bot

    object
    uid: ChatUsersGetResponsePayload
    • #chatusers

    Examples

  • PUB chatusers.create

    Save an array of new ChatUsers

    Operation IDchatusers.create.request
    • #chatusers

    Accepts the following message:

    ChatUsersCreateRequest
    array<object>

    Examples

  • SUB chatusers.create

    The array of ChatUsers saved

    Operation IDchatusers.create.response
    • #chatusers

    Accepts the following message:

    ChatUsersCreateResponse
    allOf
    uid: ChatUsersCreateResponsePayload

    Examples

  • PUB chatusers.delete

    Send list of chat users id to delete

    Operation IDchatusers.delete.request
    • #chatusers

    Accepts the following message:

    ChatUsersDeleteRequest
    object
    uid: ChatUsersDeleteRequestPayload

    Examples

  • SUB chatusers.delete

    Messages that you receive from the API when you delete one or more chat users

    Operation IDchatusers.delete.response
    • #chatusers

    Accepts the following message:

    ChatUsersDeleteResponse
    allOf
    uid: ChatUsersDeleteResponsePayload

    Examples

  • PUB chatusers.insights

    Ask for some analytics of ChatUsers

    Operation IDchatusers.insights.request
    • #chatusers

    Accepts the following message:

    ChatUsersInsightsRequest
    allOf
    uid: ChatUsersInsightsRequestPayload

    Examples

  • SUB chatusers.insights

    Return some analytics of ChatUsers

    Operation IDchatusers.insights.response
    • #chatusers

    Accepts the following message:

    ChatUsersInsightsResponse
    allOf
    uid: ChatUsersInsightsResponsePayload

    Examples

  • PUB chatusers.import

    Send a CSV file to create new ChatUsers, already existing ChatUsers are gonna be updated.

    Operation IDchat-users.import.request
    • #chatusers

    Accepts the following message:

    ChatUsersImportRequest
    object
    uid: ChatUsersImportRequestPayload

    Examples

  • SUB chatusers.import

    Get operation status

    Operation IDchat-users.import.response
    • #chatusers

    Accepts the following message:

    ChatUsersImportResponse
    allOf
    uid: ChatUsersImportResponsePayload

    Examples

  • PUB chatusers.get-feedback

    Get list of feedback leaved by ChatUsers during conversation

    Operation IDchatusers.get-feedback.request
    • #chatusers
    • #feedback

    Accepts the following message:

    ChatUsersGetFeedbackListRequest
    allOf

    Examples

  • SUB chatusers.get-feedback

    Operation IDchat-users.get-feedback.response
    • #chatusers
    • #feedback

    Accepts the following message:

    ChatUsersGetFeedbackListResponse
    allOf
    uid: ChatUsersGetFeedbackListResponsePayload

    Examples

  • PUB chatusers.create-segment

    Send a CSV file to create new ChatUsers, already existing ChatUsers are gonna be updated.

    Operation IDchat-users.createSegment.request
    • #chatusers

    Accepts the following message:

    ChatUsersCreateSegmentRequest
    object
    uid: ChatUsersCreateSegmentRequestPayload

    Examples

  • SUB chatusers.create-segment

    Get operation status

    Operation IDchat-users.createSegment.response
    • #chatusers

    Accepts the following message:

    ChatUsersCreateSegmentResponse
    allOf
    uid: ChatUsersCreateSegmentResponsePayload

    Examples

  • PUB chatusers.remove-segment

    Remove segment related to ChatUsers

    Operation IDchat-users.removeSegment.request
    • #chatusers

    Accepts the following message:

    <anonymous-message-17>
    array<string>

    Examples

  • SUB chatusers.remove-segment

    Operation IDchat-users.removeSegment.response
    • #chatusers

    Accepts the following message:

    <anonymous-message-18>
    allOf

    Examples

  • PUB chatusers.edit-segment

    Edit segment related to ChatUsers

    Operation IDchat-users.editSegment.request
    • #chatusers

    Accepts the following message:

    <anonymous-message-19>
    object

    Examples

  • SUB chatusers.edit-segment

    Operation IDchat-users.editSegment.response
    • #chatusers

    Accepts the following message:

    <anonymous-message-20>
    allOf

    Examples

  • PUB chatusers.get-bot-segments

    Get Bot Segments' list related to ChatUsers

    Operation IDchat-users.get-bot-segments.request
    • #chatusers
    • #segments

    Accepts the following message:

    ChatUsersGetBotSegmentsRequest

    Examples

  • SUB chatusers.get-bot-segments

    Operation IDchat-users.get-bot-segments.response
    • #chatusers

    Accepts the following message:

    ChatUsersGetBotSegmentsResponse
    allOf
    uid: ChatUsersGetBotSegmentsResponsePayload

    Examples

  • PUB chatusers.get-bot-tags

    Get Bot Tags' list related to ChatUsers

    Operation IDchat-users.get-bot-tags.request
    • #chatusers
    • #tag

    Accepts the following message:

    ChatUsersGetBotTagsRequest

    Examples

  • SUB chatusers.get-bot-tags

    Operation IDchat-users.get-tags.response
    • #chatusers

    Accepts the following message:

    ChatUsersGetBotTagsResponse
    allOf
    uid: ChatUsersGetBotTagsResponsePayload

    Examples

  • PUB chatusers.add-tag

    Add a Tag to a ChatUser

    Operation IDchat-users.addTag.request
    • #chatusers

    Accepts the following message:

    ChatUsersAddTagRequest
    object
    uid: ChatUsersAddTagRequestPayload

    Examples

  • SUB chatusers.add-tag

    addTag response method

    Operation IDchat-users.addTag.response
    • #chatusers

    Accepts the following message:

    ChatUsersAddTagResponse
    allOf
    uid: ChatUsersAddTagResponsePayload

    Examples

  • PUB chatusers.remove-tag

    Remove a Tag from a list of ChatUsers

    Operation IDchat-users.removeTag.request
    • #chatusers

    Accepts the following message:

    ChatUsersRemoveTagRequest
    object
    uid: ChatUsersRemoveElementRequestPayload

    Examples

  • SUB chatusers.remove-tag

    removeTag response method

    Operation IDchat-users.removeTag.response
    • #chatusers

    Accepts the following message:

    ChatUsersRemoveTagResponse
    allOf
    uid: ChatUsersRemoveTagResponsePayload

    Examples

  • PUB chatusers.get-vars

    Send messages to the API

    Operation IDchatusers.get-vars.request
    • #chatusers

    Accepts the following message:

    ChatUsersGetVarsRequest

    Ask variables assigned to a Chat User

    Client can ask to the server the list of pair name-value variables assigned to a Chat User

    object
    uid: ChatUsersGetVarsRequestPayload

    Examples

  • SUB chatusers.get-vars

    Messages that you receive from the API

    Operation IDchatusers.get-vars.response
    • #chatusers

    Accepts the following message:

    ChatUsersGetVarsResponse

    Return variables assigned to a Chat User

    object
    uid: ChatUsersGetVarsResponsePayload

    Examples

  • PUB chatusers.set-variable

    Add a Variable to a ChatUser

    Operation IDchat-users.set-variable.request
    • #chatusers

    Accepts the following message:

    ChatUsersSetVariableRequest
    object
    uid: ChatUsersSetVariableRequestPayload

    When is passed a variable_id an update will occur. If the variable object is passed a new variable will be created.

    Examples

  • SUB chatusers.set-variable

    Operation IDchat-users.set-variable.response
    • #chatusers

    Accepts the following message:

    ChatUsersSetVariableResponse
    allOf
    uid: ChatUsersSetVariableResponsePayload

    Examples

  • PUB chatusers.remove-variable

    Remove a Variable from a ChatUsers

    Operation IDchat-users.removeVariable.request
    • #chatusers

    Accepts the following message:

    <anonymous-message-33>
    object

    Examples

  • SUB chatusers.remove-variable

    removeVariable response method

    Operation IDchat-users.removeVariable.response
    • #chatusers

    Accepts the following message:

    <anonymous-message-34>
    allOf

    Examples

  • PUB sitekey.undefined.[bot-argument]

    Send messages to the API

    Operation IDsitekey.undefined.request
    • #sitekey
    • #login

    Accepts the following message:

    SitekeyUndefinedRequest

    Start the communication with Userbot

    This command is used to start the communication with Userbot. Example is "sitekey undefined bbfad81389103ba06485d07bfedb4036"

    object
    uid: SitekeyUndefinedRequestPayload

    no payload is sent with this command at all

    • #sitekey
    • #login

    Examples

  • SUB sitekey.undefined.[bot-argument]

    Messages that you receive from the API

    Operation IDsitekey.undefined.response
    • #sitekey
    • #login

    Accepts the following message:

    SitekeyUndefinedResponse

    Validates sitekey

    object
    uid: SitekeyUndefinedResponsePayload
    • #sitekey
    • #login

    Examples

  • PUB apiLogin.[apikey]

    A special login to Userbot that allows to use APIs

    Operation IDapiLogin.apikey.request
    • #apiLogin
    • #login

    Accepts the following message:

    ApiLoginApikeyRequest

    Send the login request to Userbot

    This command is used to authenticate the user with Userbot. Example is "apiLogin 123456789wasd"

    object
    uid: ApiLoginApikeyRequestPayload

    No payload is sent with this command

    • #apiLogin
    • #login

    Examples

  • SUB apiLogin.[apikey]

    Messages that you receive from the API

    Operation IDapiLogin.apikey.response
    • #apiLogin
    • #login

    Accepts the following message:

    ApiLoginApikeyResponse

    Authenticate

    object
    uid: ApiLoginApikeyResponsePayload
    • #apiLogin
    • #login

    Examples

  • PUB bot.stats

    Get Bot stats

    Operation IDbot.stats.request
    • #bot

    Accepts the following message:

    BotStatsRequest

    Get bot stats

    This command is used to get bot stats

    object
    uid: BotStatsRequestPayload
    • #bot

    Examples

  • SUB bot.stats

    Operation IDbot.stats.response
    • #bot

    Accepts the following message:

    BotStatsResponse

    Sends all the stats for the bots of the user

    object
    uid: BotStatsResponsePayload
    • #bot

    Examples

  • PUB who

    Send messages to the API

    Operation IDwho.request
    • #chat

    Accepts the following message:

    WhoRequest

    Ask data about the logged user

    This command is used to get information about the logged user, in particular the user.id is needed to use chat commands (robin)

    Payload
    string
    uid: WhoRequestPayload
    Default value:"who"
    • #chat

    Examples

  • SUB who

    Messages that you receive from the API

    Operation IDwho.response
    • #chat

    Accepts the following message:

    WhoResponse

    Returns information about the logged user

    object
    uid: WhoResponsePayload
    • #chat

    Examples

  • PUB robin.sv.[user.id].get.sessions.[limit].[offset]

    Send messages to the API

    Operation IDrobin.sv.[user.id].get.sessions.[limit].[offset].request
    • #chat

    Accepts the following message:

    RobinSvGetSessionsRequest

    Ask data about chats

    This command returns the information about the chats on a bot

    Payload
    string
    uid: RobinSvGetSessionsRequestPayload

    The [user.id] is the value that can be get by the command who. Limit and offset (integers) are used to limit the amount of chat sessions to be returned.

    Default value:"robin sv [user.id] get sessions [limit] [offset]"
    • #chat

    Examples

  • SUB robin.sv.[user.id].get.sessions.[limit].[offset]

    Messages that you receive from the API

    Operation IDrobin.sv.[user.id].get.sessions.[limit].[offset].response
    • #chat

    Accepts the following message:

    RobinSvGetSessionsResponse

    Returns information about chats

    object
    uid: RobinSvGetSessionsResponsePayload
    • #chat

    Examples

  • PUB robin.sv.[userid].get.[session.id]

    Send messages to the API

    Operation IDrobin.sv.[userid].get.[session.id].request
    • #chat

    Accepts the following message:

    RobinSvGetSessionRequest

    Ask data about a single chat by session id

    This command returns the information about the single chat identified by session.id

    Payload
    string
    uid: RobinSvGetSessionRequestPayload

    The [user.id] is the value that can be get by the command who. The [session.id] is obtained by robin.sv.[user.id].get.sessions.[limit].[offset] command

    Default value:"robin sv [user.id] get [session.id]"
    • #chat

    Examples

  • SUB robin.sv.[userid].get.[session.id]

    Messages that you receive from the API

    Operation IDrobin.sv.[userid].get.[session.id].response
    • #chat

    Accepts the following message:

    RobinSvGetSessionResponse

    Returns information about a single chat, identified by session.id

    object
    uid: RobinSvGetSessionResponsePayload
    • #chat

    Examples

  • PUB chat-assign-to-agent

    Send messages to the API

    Operation IDchat-assign-to-agent.request
    • #chat

    Accepts the following message:

    ChatAssignToAgentRequest

    Ask to assign a chat to an agent

    This command returns the information about the single chat identified by session.id

    object
    uid: ChatAssignToAgentRequestPayload

    Used to ask to assign a chat to an agent

    • #chat

    Examples

  • SUB chat-assign-to-agent

    Messages that you receive from the API

    Operation IDchat-assign-to-agent.response
    • #chat

    Accepts the following message:

    ChatAssignToAgentResponse

    Assigns the chat to an agent

    object
    uid: ChatAssignToAgentResponsePayload
    • #chat

    Examples

  • PUB chat-assign-to-bot

    Send messages to the API

    Operation IDchat-assign-to-bot.request
    • #chat

    Accepts the following message:

    ChatAssignToBotRequest

    Ask to assign a chat to the Bot

    This command returns the information about the single chat identified by session.id

    object
    uid: ChatAssignToBotRequestPayload

    Used to ask to assign a chat to the Bot

    • #chat

    Examples

  • SUB chat-assign-to-bot

    Messages that you receive from the API

    Operation IDchat-assign-to-bot.response
    • #chat

    Accepts the following message:

    ChatAssignToBotResponse

    Assigns the chat to the Bot

    object
    uid: ChatAssignToBotResponsePayload
    • #chat

    Examples

  • PUB say.[wspath].[-100].[session.id].[chat_message]

    Send messages to the API

    Operation IDsay.[wspath].[-100].[session.id].[chat_message].request
    • #chat
    • #chat-notification

    Accepts the following message:

    SayRequest

    Send a chat message by agent in the chat session with id [session.id]

    The wspath is in the payload of robin.sv.[user.id].get.sessions

    Payload
    string
    uid: SayRequestPayload

    wspath can be get by robin.sv.[user.id].get.sessions. chat_message is the actual message that is sent in the chat

    Default value:"say.[wspath].[-100].[session.id].[chat_message]"
    • #chat
    • #chat-notification

    Examples

  • SUB say.[wspath].[-100].[session.id].[chat_message]

    Messages that you receive from the API

    Operation IDsay.[wspath].[-100].[session.id].[chat_message].response
    • #chat
    • #chat-notification

    Accepts the following message:

    SayResponse

    Response is information about the current chat message

    object
    uid: SayResponsePayload
    • #chat
    • #chat-notification

    Examples

  • PUB qeafilter.search.page-db-ai

    Get list of interactions for the bot

    Operation IDqeafilter.search.page-db-ai.request
    • #qeafilter

    Accepts the following message:

    QeafilterSearchPageDbAiRequest

    Get interactions

    This command is used to get the list of interactions. qeafilter search {[payload]}

    object
    uid: QeafilterSearchPageDbAiRequestPayload
    • #qeafilter

    Examples

  • SUB qeafilter.search.page-db-ai

    Operation IDqeafilter.search.page-db-ai.response
    • #qeafilter

    Accepts the following message:

    QeafilterSearchPageDbAiResponse

    Returns the information about the interactions

    object
    uid: QeafilterSearchPageDbAiResponsePayload
    • #qeafilter

    Examples

  • PUB qeafilter.save

    Save an interaction with a chosen label (name)

    Operation IDqeafilter.save.request
    • #qeafilter

    Accepts the following message:

    QeafilterSaveRequest

    Save an interaction

    This command is used to save an interaction

    object
    uid: QeafilterSaveRequestPayload
    • #qeafilter

    Examples

  • SUB qeafilter.save

    Operation IDqeafilter.save.response
    • #qeafilter

    Accepts the following message:

    QeafilterSaveResponse

    Returns the information about the interaction saved

    object
    uid: QeafilterSaveResponsePayload
    • #qeafilter

    Examples

  • PUB qeafilter.save.token

    Update an interaction

    Operation IDqeafilter.save.token.request
    • #qeafilter

    Accepts the following message:

    QeafilterSaveTokenRequest

    Update an interaction

    This command is used to save an interaction. The token is the interaction label, it is sent between "<" and ">"

    object
    uid: QeafilterSaveTokenRequestPayload
    • #qeafilter

    Examples

  • SUB qeafilter.save.token

    Operation IDqeafilter.save.token.response
    • #qeafilter

    Accepts the following message:

    QeafilterSaveTokenResponse

    Returns the information about the interaction updated

    object
    uid: QeafilterSaveTokenResponsePayload
    • #qeafilter

    Examples

  • PUB qeafilter.delete

    Delete an interaction

    Operation IDqeafilter.delete.request
    • #qeafilter

    Accepts the following message:

    QeafilterDeleteRequest

    Delete an interaction

    This command is used to delete an existing interaction

    object
    uid: QeafilterDeleteRequestPayload
    • #qeafilter

    Examples

  • SUB qeafilter.delete

    Operation IDqeafilter.delete.response
    • #qeafilter

    Accepts the following message:

    QeafilterDeleteResponse

    Returns the information about the interaction deleted and the status of the operation

    object
    uid: QeafilterDeleteResponsePayload
    • #qeafilter

    Examples

  • PUB automated-messages.get

    Ask list of automated messages created on the Bot

    Operation IDautomated-messages.get.request
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesGetRequest

    Ask a list of automated messages on a Bot

    Examples

  • SUB automated-messages.get

    Retrieve list of automated messages from Bot

    Operation IDautomated-messages.get.response
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesGetResponse

    List of automated messages on a Bot

    object
    uid: AutomatedMessagesGetResponsePayload

    Examples

  • PUB automated-messages.delete

    Request deletion of an Automated Message

    Operation IDautomated-messages.delete.request
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesDeleteRequest
    object
    uid: AutomatedMessagesDeleteRequestPayload

    Examples

  • SUB automated-messages.delete

    Messages that you receive from the API when you delete one or more automated messages

    Operation IDautomated-messages.delete.response
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesDeleteResponse
    allOf
    uid: AutomatedMessagesDeleteResponsePayload

    Examples

  • PUB automated-messages.save

    Save or update an Automated Message

    Operation IDautomated-messages.save.request
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesSaveRequest
    object
    uid: AutomatedMessagesSaveRequestPayload

    Examples

  • SUB automated-messages.save

    Automated Message created or updated

    Operation IDautomated-messages.save.response
    • #automated-messages

    Accepts the following message:

    AutomatedMessagesSaveResponse
    allOf
    uid: AutomatedMessagesSaveResponsePayload

    Examples

  • PUB intel.leadlist

    Request for all the stored leads

    Operation IDintel.leadlist.request
    • #intel

    Accepts the following message:

  • SUB intel.leadlist

    Obtain the list of all the leads that visited the site

    Operation IDintel.leadlist.response
    • #intel

    Accepts the following message:

    IntelLeadlistResponse

    The List of leads

    Carries an array of objects describing the lead companies that have visited the Userbot's customer site

    array<object>
    • #intel

    Examples

  • PUB intel.visitdetails

    Request the list of pages visited by the lead

    Operation IDintel.visitdetails.request
    • #intel

    Accepts the following message:

    IntelVisitdetailsRequest

    Request the list of visited pages and times

    Query for all the user navigation record stored

    object
    uid: IntelVisitdetailsRequestPayload
    • #intel

    Examples

  • SUB intel.visitdetails

    Obtain the list of pages visited by the lead

    Operation IDintel.visitdetails.response
    • #intel

    Accepts the following message:

    IntelVisitdetailsResponse

    Receive of visited pages and times

    Carries an array of objects consisting in the page url, the ISO UTC date in which the user landed and the one in which he left the Userbot's customer site

    array<object>
    • #intel

    Examples

  • PUB intel.keypeople

    Request the list of the lead's key people

    Operation IDintel.keypeople.request
    • #intel

    Accepts the following message:

    IntelKeypeopleRequest

    The List of key people

    Query for an array of key people's contacts in a company

    object
    uid: IntelKeypeopleRequestPayload
    • #intel

    Examples

  • SUB intel.keypeople

    Obtain a list of contacts of the company's key people

    Operation IDintel.keypeople.response
    • #intel

    Accepts the following message:

    IntelKeypeopleResponse

    The List of key people

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    array<object>
    • #intel

    Examples

  • PUB intel.addtag

    Adds a tag

    Operation IDintel.addtag.request
    • #intel

    Accepts the following message:

    IntelAddTagRequest

    Adds a tag for a company

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    object
    uid: IntelAddTagRequestPayload
    • #intel

    Examples

  • SUB intel.addtag

    Read status code in order to know if a tag was added

    Operation IDintel.addtag.response
    • #intel

    Accepts the following message:

  • PUB intel.removetag

    Removes a tag

    Operation IDintel.removetag.request
    • #intel

    Accepts the following message:

    IntelRemoveTagRequest

    Adds a tag for a company

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    object
    uid: IntelRemoveTagRequestPayload
    • #intel

    Examples

  • SUB intel.removetag

    Read status code in order to know if a tag was removed

    Operation IDintel.removetag.response
    • #intel

    Accepts the following message:

  • PUB rawstats.count-nps

    Get NPS values

    Operation IDrawstats.count-nps.request
    • #stats
    • #nps

    Accepts the following message:

    RawstatsCountNpsRequest

    Ask NPS in a period

    This command is used to get NPS stats in a period [from]-[to]

    object
    uid: RawstatsCountNpsRequestPayload
    • #stats

    Examples

  • SUB rawstats.count-nps

    Messages that you receive from the API

    Operation IDrawstats.count-nps.response
    • #stats
    • #nps

    Accepts the following message:

    RawstatsCountNpsResponse

    Ask NPS values between dates

    Client can ask for NPS values get from Webchat during conversation. Values are divided in negative, positive, neutral

    object
    uid: RawstatsCountNpsResponsePayload
    • #stats
    • #nps

    Examples

  • PUB rawstats.all

    Rawstats all returns the insights for the bot divided per day, in the range from-to

    Operation IDrawstats.all.request
    • #stats

    Accepts the following message:

    RawstatsAllRequest

    Ask insights for the bot

    This command is used to get insights

    object
    uid: RawstatsAllRequestPayload
    • #stats

    Examples

  • SUB rawstats.all

    Operation IDrawstats.all.response
    • #stats

    Accepts the following message:

    RawstatsAllResponse

    Returns the insights for the bot in the range from-to, divided per day

    object
    uid: RawstatsAllResponsePayload
    • #stats

    Examples

  • PUB rawstats.count-messages

    Total amount of messages in a period

    Operation IDrawstats.count-messages.request
    • #stats

    Accepts the following message:

    RawstatsCountMessagesRequest

    Ask total messages in a period

    This command is used to get the total amount of messages in a period

    object
    uid: RawstatsCountMessagesRequestPayload
    • #stats

    Examples

  • SUB rawstats.count-messages

    Operation IDrawstats.count-messages.response
    • #stats

    Accepts the following message:

    RawstatsCountMessagesResponse

    Return total messages in a period

    object
    uid: RawstatsCountMessagesResponsePayload
    • #stats

    Examples

  • PUB rawstats.count-sessions

    Total amount of sessions in a period

    Operation IDrawstats.count-sessions.request
    • #stats

    Accepts the following message:

    RawstatsCountSessionsRequest

    Ask total sessions in a period

    This command is used to get the total amount of sessions in a period

    object
    uid: RawstatsCountSessionsRequestPayload
    • #stats

    Examples

  • SUB rawstats.count-sessions

    Operation IDrawstats.count-sessions.response
    • #stats

    Accepts the following message:

    RawstatsCountSessionsResponse

    Return total sessions in a period

    object
    uid: RawstatsCountSessionsResponsePayload
    • #stats

    Examples

  • PUB rawstats.get

    Sales Stats

    Operation IDrawstats.get.request
    • #stats

    Accepts the following message:

    RawstatsGetRequest

    Ask sales stats in a period

    This command is used to get the sales stats in a period

    object
    uid: RawstatsGetRequestPayload
    • #stats

    Examples

  • SUB rawstats.get

    Operation IDrawstats.get.response
    • #stats

    Accepts the following message:

    RawstatsGetResponse

    Return sales stats in a period

    object
    uid: RawstatsGetResponsePayload
    • #stats

    Examples

  • PUB meetings.schedule

    Save a new meetings scheduled using Calendly

    Operation IDmeetings.schedule.request
    • #meetings

    Accepts the following message:

    MeetingsScheduleRequest
    object
    uid: MeetingsScheduleRequestPayload
    • #meetings

    Examples

  • PUB meetings.decline

    Submit a not scheduled meeting using Calendly

    Operation IDmeetings.decline.request
    • #meetings

    Accepts the following message:

    MeetingsDeclineRequest
    • #meetings

    Examples

Messages

  • #1BotGetVarsRequest
  • #2BotGetVarsResponse
    allOf
    uid: BotGetVarsResponsePayload
  • #3WhoRequest

    Ask data about the logged user

    This command is used to get information about the logged user, in particular the user.id is needed to use chat commands (robin)

    Payload
    string
    uid: WhoRequestPayload
    Default value:"who"
    • #chat
  • #4WhoResponse

    Returns information about the logged user

    object
    uid: WhoResponsePayload
    • #chat
  • #5RobinSvGetSessionsRequest

    Ask data about chats

    This command returns the information about the chats on a bot

    Payload
    string
    uid: RobinSvGetSessionsRequestPayload

    The [user.id] is the value that can be get by the command who. Limit and offset (integers) are used to limit the amount of chat sessions to be returned.

    Default value:"robin sv [user.id] get sessions [limit] [offset]"
    • #chat
  • #6RobinSvGetSessionsResponse

    Returns information about chats

    object
    uid: RobinSvGetSessionsResponsePayload
    • #chat
  • #7RobinSvGetSessionRequest

    Ask data about a single chat by session id

    This command returns the information about the single chat identified by session.id

    Payload
    string
    uid: RobinSvGetSessionRequestPayload

    The [user.id] is the value that can be get by the command who. The [session.id] is obtained by robin.sv.[user.id].get.sessions.[limit].[offset] command

    Default value:"robin sv [user.id] get [session.id]"
    • #chat
  • #8RobinSvGetSessionResponse

    Returns information about a single chat, identified by session.id

    object
    uid: RobinSvGetSessionResponsePayload
    • #chat
  • #9ChatAssignToAgentRequest

    Ask to assign a chat to an agent

    This command returns the information about the single chat identified by session.id

    object
    uid: ChatAssignToAgentRequestPayload

    Used to ask to assign a chat to an agent

    • #chat
  • #10ChatAssignToAgentResponse

    Assigns the chat to an agent

    object
    uid: ChatAssignToAgentResponsePayload
    • #chat
  • #11ChatAssignToBotRequest

    Ask to assign a chat to the Bot

    This command returns the information about the single chat identified by session.id

    object
    uid: ChatAssignToBotRequestPayload

    Used to ask to assign a chat to the Bot

    • #chat
  • #12ChatAssignToBotResponse

    Assigns the chat to the Bot

    object
    uid: ChatAssignToBotResponsePayload
    • #chat
  • #13SayRequest

    Send a chat message by agent in the chat session with id [session.id]

    The wspath is in the payload of robin.sv.[user.id].get.sessions

    Payload
    string
    uid: SayRequestPayload

    wspath can be get by robin.sv.[user.id].get.sessions. chat_message is the actual message that is sent in the chat

    Default value:"say.[wspath].[-100].[session.id].[chat_message]"
    • #chat
    • #chat-notification
  • #14SayResponse

    Response is information about the current chat message

    object
    uid: SayResponsePayload
    • #chat
    • #chat-notification
  • #15ChatUsersGetRequest

    Ask a list of chat users

    Client can ask to the server the list of users that interacted with a given bot, based on offset and limit parameters. This is because there is infinite scrolling on the dash USERS and the data needs to be limited

    object
    uid: ChatUsersGetRequestPayload
    • #chatusers
  • #16ChatUsersGetResponse

    List the chat users of a single bot

    object
    uid: ChatUsersGetResponsePayload
    • #chatusers
  • #17ChatUsersGetVarsRequest

    Ask variables assigned to a Chat User

    Client can ask to the server the list of pair name-value variables assigned to a Chat User

    object
    uid: ChatUsersGetVarsRequestPayload
  • #18ChatUsersGetVarsResponse

    Return variables assigned to a Chat User

    object
    uid: ChatUsersGetVarsResponsePayload
  • #19ChatUsersCreateRequest
    array<object>
  • #20ChatUsersCreateResponse
    allOf
    uid: ChatUsersCreateResponsePayload
  • #21ChatUsersDeleteRequest
    object
    uid: ChatUsersDeleteRequestPayload
  • #22ChatUsersDeleteResponse
    allOf
    uid: ChatUsersDeleteResponsePayload
  • #23ChatUsersInsightsRequest
    allOf
    uid: ChatUsersInsightsRequestPayload
  • #24ChatUsersInsightsResponse
    allOf
    uid: ChatUsersInsightsResponsePayload
  • #25ChatUsersImportRequest
    object
    uid: ChatUsersImportRequestPayload
  • #26ChatUsersImportResponse
    allOf
    uid: ChatUsersImportResponsePayload
  • #27ChatUsersGetFeedbackListRequest
    allOf
  • #28ChatUsersGetFeedbackListResponse
    allOf
    uid: ChatUsersGetFeedbackListResponsePayload
  • #29ChatUsersSetVariableRequest
    object
    uid: ChatUsersSetVariableRequestPayload

    When is passed a variable_id an update will occur. If the variable object is passed a new variable will be created.

  • #30ChatUsersSetVariableResponse
    allOf
    uid: ChatUsersSetVariableResponsePayload
  • #31ChatUsersGetBotTagsRequest
  • #32ChatUsersGetBotTagsResponse
    allOf
    uid: ChatUsersGetBotTagsResponsePayload
  • #33ChatUsersAddTagRequest
    object
    uid: ChatUsersAddTagRequestPayload
  • #34ChatUsersAddTagResponse
    allOf
    uid: ChatUsersAddTagResponsePayload
  • #35ChatUsersRemoveTagRequest
    object
    uid: ChatUsersRemoveElementRequestPayload
  • #36ChatUsersRemoveTagResponse
    allOf
    uid: ChatUsersRemoveTagResponsePayload
  • #37ChatUsersCreateSegmentRequest
    object
    uid: ChatUsersCreateSegmentRequestPayload
  • #38ChatUsersCreateSegmentResponse
    allOf
    uid: ChatUsersCreateSegmentResponsePayload
  • #39ChatUsersGetBotSegmentsRequest
  • #40ChatUsersGetBotSegmentsResponse
    allOf
    uid: ChatUsersGetBotSegmentsResponsePayload
  • #41SitekeyUndefinedRequest

    Start the communication with Userbot

    This command is used to start the communication with Userbot. Example is "sitekey undefined bbfad81389103ba06485d07bfedb4036"

    object
    uid: SitekeyUndefinedRequestPayload

    no payload is sent with this command at all

    • #sitekey
    • #login
  • #42SitekeyUndefinedResponse

    Validates sitekey

    object
    uid: SitekeyUndefinedResponsePayload
    • #sitekey
    • #login
  • #43ApiLoginApikeyRequest

    Send the login request to Userbot

    This command is used to authenticate the user with Userbot. Example is "apiLogin 123456789wasd"

    object
    uid: ApiLoginApikeyRequestPayload

    No payload is sent with this command

    • #apiLogin
    • #login
  • #44ApiLoginApikeyResponse

    Authenticate

    object
    uid: ApiLoginApikeyResponsePayload
    • #apiLogin
    • #login
  • #45BotStatsRequest

    Get bot stats

    This command is used to get bot stats

    object
    uid: BotStatsRequestPayload
    • #bot
  • #46BotStatsResponse

    Sends all the stats for the bots of the user

    object
    uid: BotStatsResponsePayload
    • #bot
  • #47QeafilterSearchPageDbAiRequest

    Get interactions

    This command is used to get the list of interactions. qeafilter search {[payload]}

    object
    uid: QeafilterSearchPageDbAiRequestPayload
    • #qeafilter
  • #48QeafilterSearchPageDbAiResponse

    Returns the information about the interactions

    object
    uid: QeafilterSearchPageDbAiResponsePayload
    • #qeafilter
  • #49QeafilterSaveRequest

    Save an interaction

    This command is used to save an interaction

    object
    uid: QeafilterSaveRequestPayload
    • #qeafilter
  • #50QeafilterSaveResponse

    Returns the information about the interaction saved

    object
    uid: QeafilterSaveResponsePayload
    • #qeafilter
  • #51QeafilterSaveTokenRequest

    Update an interaction

    This command is used to save an interaction. The token is the interaction label, it is sent between "<" and ">"

    object
    uid: QeafilterSaveTokenRequestPayload
    • #qeafilter
  • #52QeafilterSaveTokenResponse

    Returns the information about the interaction updated

    object
    uid: QeafilterSaveTokenResponsePayload
    • #qeafilter
  • #53QeafilterDeleteRequest

    Delete an interaction

    This command is used to delete an existing interaction

    object
    uid: QeafilterDeleteRequestPayload
    • #qeafilter
  • #54QeafilterDeleteResponse

    Returns the information about the interaction deleted and the status of the operation

    object
    uid: QeafilterDeleteResponsePayload
    • #qeafilter
  • #55AutomatedMessagesGetRequest

    Ask a list of automated messages on a Bot

  • #56AutomatedMessagesGetResponse

    List of automated messages on a Bot

    object
    uid: AutomatedMessagesGetResponsePayload
  • #57AutomatedMessagesDeleteRequest
    object
    uid: AutomatedMessagesDeleteRequestPayload
  • #58AutomatedMessagesDeleteResponse
    allOf
    uid: AutomatedMessagesDeleteResponsePayload
  • #59AutomatedMessagesSaveRequest
    object
    uid: AutomatedMessagesSaveRequestPayload
  • #60AutomatedMessagesSaveResponse
    allOf
    uid: AutomatedMessagesSaveResponsePayload
  • #61RawstatsCountNpsRequest

    Ask NPS in a period

    This command is used to get NPS stats in a period [from]-[to]

    object
    uid: RawstatsCountNpsRequestPayload
    • #stats
  • #62RawstatsCountNpsResponse

    Ask NPS values between dates

    Client can ask for NPS values get from Webchat during conversation. Values are divided in negative, positive, neutral

    object
    uid: RawstatsCountNpsResponsePayload
    • #stats
    • #nps
  • #63RawstatsAllRequest

    Ask insights for the bot

    This command is used to get insights

    object
    uid: RawstatsAllRequestPayload
    • #stats
  • #64RawstatsAllResponse

    Returns the insights for the bot in the range from-to, divided per day

    object
    uid: RawstatsAllResponsePayload
    • #stats
  • #65RawstatsCountMessagesRequest

    Ask total messages in a period

    This command is used to get the total amount of messages in a period

    object
    uid: RawstatsCountMessagesRequestPayload
    • #stats
  • #66RawstatsCountMessagesResponse

    Return total messages in a period

    object
    uid: RawstatsCountMessagesResponsePayload
    • #stats
  • #67RawstatsCountSessionsRequest

    Ask total sessions in a period

    This command is used to get the total amount of sessions in a period

    object
    uid: RawstatsCountSessionsRequestPayload
    • #stats
  • #68RawstatsCountSessionsResponse

    Return total sessions in a period

    object
    uid: RawstatsCountSessionsResponsePayload
    • #stats
  • #69RawstatsGetRequest

    Ask sales stats in a period

    This command is used to get the sales stats in a period

    object
    uid: RawstatsGetRequestPayload
    • #stats
  • #70RawstatsGetResponse

    Return sales stats in a period

    object
    uid: RawstatsGetResponsePayload
    • #stats
  • #71IntelLeadlistResponse

    The List of leads

    Carries an array of objects describing the lead companies that have visited the Userbot's customer site

    array<object>
    • #intel
  • #72IntelVisitdetailsRequest

    Request the list of visited pages and times

    Query for all the user navigation record stored

    object
    uid: IntelVisitdetailsRequestPayload
    • #intel
  • #73IntelVisitdetailsResponse

    Receive of visited pages and times

    Carries an array of objects consisting in the page url, the ISO UTC date in which the user landed and the one in which he left the Userbot's customer site

    array<object>
    • #intel
  • #74IntelKeypeopleRequest

    The List of key people

    Query for an array of key people's contacts in a company

    object
    uid: IntelKeypeopleRequestPayload
    • #intel
  • #75IntelKeypeopleResponse

    The List of key people

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    array<object>
    • #intel
  • #76IntelAddTagRequest

    Adds a tag for a company

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    object
    uid: IntelAddTagRequestPayload
    • #intel
  • #77IntelRemoveTagRequest

    Adds a tag for a company

    Carries the array of objects consisting in the name, surname and contacts of the key people in a company

    object
    uid: IntelRemoveTagRequestPayload
    • #intel
  • #78MeetingsScheduleRequest
    object
    uid: MeetingsScheduleRequestPayload
    • #meetings
  • #79MeetingsDeclineRequest
    • #meetings

Schemas

  • allOf
    uid: BotGetVarsResponsePayload
  • WhoRequestPayload
    string
    uid: WhoRequestPayload
    Default value:"who"
  • object
    uid: WhoResponsePayload
  • RobinSvGetSessionsRequestPayload
    string
    uid: RobinSvGetSessionsRequestPayload

    The [user.id] is the value that can be get by the command who. Limit and offset (integers) are used to limit the amount of chat sessions to be returned.

    Default value:"robin sv [user.id] get sessions [limit] [offset]"
  • object
    uid: RobinSvGetSessionsResponsePayload
  • RobinSvGetSessionRequestPayload
    string
    uid: RobinSvGetSessionRequestPayload

    The [user.id] is the value that can be get by the command who. The [session.id] is obtained by robin.sv.[user.id].get.sessions.[limit].[offset] command

    Default value:"robin sv [user.id] get [session.id]"
  • object
    uid: RobinSvGetSessionResponsePayload
  • object
    uid: ChatAssignToAgentRequestPayload

    Used to ask to assign a chat to an agent

  • object
    uid: ChatAssignToAgentResponsePayload
  • object
    uid: ChatAssignToBotRequestPayload

    Used to ask to assign a chat to the Bot

  • object
    uid: ChatAssignToBotResponsePayload
  • SayRequestPayload
    string
    uid: SayRequestPayload

    wspath can be get by robin.sv.[user.id].get.sessions. chat_message is the actual message that is sent in the chat

    Default value:"say.[wspath].[-100].[session.id].[chat_message]"
  • object
    uid: SayResponsePayload
  • object
    uid: ChatUser
  • object
    uid: Variable
  • object
    uid: Tag
  • object
    uid: Segment
  • object
    uid: SegmentFilter
  • object
    uid: Feedback
  • object
    uid: ChatUsersGetRequestPayload
  • object
    uid: ChatUsersGetResponsePayload
  • object
    uid: ChatUsersGetVarsRequestPayload
  • object
    uid: ChatUsersGetVarsResponsePayload
  • array<object>
  • allOf
    uid: ChatUsersCreateResponsePayload
  • object
    uid: ChatUsersDeleteRequestPayload
  • allOf
    uid: ChatUsersDeleteResponsePayload
  • allOf
    uid: ChatUsersInsightsRequestPayload
  • allOf
    uid: ChatUsersInsightsResponsePayload
  • object
    uid: ChatUsersImportRequestPayload
  • allOf
    uid: ChatUsersImportResponsePayload
  • object
    uid: ChatUsersCreateSegmentRequestPayload
  • allOf
    uid: ChatUsersCreateSegmentResponsePayload
  • allOf
    uid: ChatUsersGetBotSegmentsResponsePayload
  • object
    uid: ChatUsersSetVariableRequestPayload

    When is passed a variable_id an update will occur. If the variable object is passed a new variable will be created.

  • allOf
    uid: ChatUsersSetVariableResponsePayload
  • allOf
    uid: ChatUsersGetBotTagsResponsePayload
  • object
    uid: ChatUsersAddTagRequestPayload
  • allOf
    uid: ChatUsersAddTagResponsePayload
  • object
    uid: ChatUsersRemoveElementRequestPayload
  • allOf
    uid: ChatUsersRemoveTagResponsePayload
  • object
    uid: ChatUsersRemoveElementRequestPayload
  • object
    uid: ChatUsersRemoveElementRequestPayload
  • object
    uid: SitekeyUndefinedRequestPayload

    no payload is sent with this command at all

  • object
    uid: SitekeyUndefinedResponsePayload
  • object
    uid: ApiLoginApikeyRequestPayload

    No payload is sent with this command

  • object
    uid: ApiLoginApikeyResponsePayload
  • object
    uid: BotStatsRequestPayload
  • object
    uid: BotStatsResponsePayload
  • object
    uid: QeafilterSearchPageDbAiRequestPayload
  • object
    uid: QeafilterSearchPageDbAiResponsePayload
  • object
    uid: QeafilterSaveRequestPayload
  • object
    uid: QeafilterSaveResponsePayload
  • object
    uid: QeafilterSaveTokenRequestPayload
  • object
    uid: QeafilterSaveTokenResponsePayload
  • object
    uid: QeafilterDeleteRequestPayload
  • object
    uid: QeafilterDeleteResponsePayload
  • object
    uid: AutomatedMessage
  • object
    uid: AutomatedMesssageCondition
  • object
    uid: Answer
  • object
    uid: AutomatedMessagesGetResponsePayload
  • object
    uid: AutomatedMessagesDeleteRequestPayload
  • allOf
    uid: AutomatedMessagesDeleteResponsePayload
  • object
    uid: AutomatedMessagesSaveRequestPayload
  • allOf
    uid: AutomatedMessagesSaveResponsePayload
  • object
    uid: RawstatsCountNpsRequestPayload
  • object
    uid: RawstatsCountNpsResponsePayload
  • object
    uid: RawstatsAllRequestPayload
  • object
    uid: RawstatsAllResponsePayload
  • object
    uid: RawstatsCountMessagesRequestPayload
  • object
    uid: RawstatsCountMessagesResponsePayload
  • object
    uid: RawstatsCountSessionsRequestPayload
  • object
    uid: RawstatsCountSessionsResponsePayload
  • object
    uid: RawstatsGetRequestPayload
  • object
    uid: RawstatsGetResponsePayload
  • array<object>
  • object
    uid: IntelVisitdetailsRequestPayload
  • array<object>
  • object
    uid: IntelKeypeopleRequestPayload
  • array<object>
  • object
    uid: IntelAddTagRequestPayload
  • object
    uid: IntelRemoveTagRequestPayload
  • allOf
    uid: ChatUsersGetFeedbackListResponsePayload
  • allOf
    uid: ChatUsersGetFeedbackListResponsePayload
  • object
    uid: MeetingsScheduleRequestPayload