Other Structures

The following structures are available globally.

  • Actions are messages, that should be output by the client. They can include text, media (images, links, lists, etc), quickreplies, etc. Some actions can also be fallback messages, providing an output if an older client doesn’t support a certain media type, by using Action.fallbackFor

    See more

    Declaration

    Swift

    public struct Action : Lookupable
  • Display a button that requests the location - useful for facebook only:

    curl "https://dev.api.caritas.wave-ai.com/message?q=wo+ist+der+naechste+container" \
    -H 'Content-Type: application/json'
    
    See more

    Declaration

    Swift

    public struct QuickReplyAdvancedRequestLocation : QuickReplyAdvanced
  • Quick replies to be added as quick replies to the answer or to be appended to any quick replies the client may be outputing. For example if the user asks “Wo ist die nächste Bibliothek” (Wave Story), additionalQuickReplies will contain a “Info: Bibilothek” button, that sends “biblothek” and triggers the WienBot story.

    See more

    Declaration

    Swift

    public struct QuickReply : Codable
  • WienBotKitura accepts GET queries queries to interpret a message. The message q is message to be interpreted. Example: https://dev.api.wienbot.wave-ai.com/message\ ?q=ich%20habe%20meinen%20schl%C3%BCssel%20verloren&nowave=false

    See more

    Declaration

    Swift

    public struct ServerRequest : Codable, Hashable, Equatable
  • An entity found in an outcome.

    See more

    Declaration

    Swift

    public struct WitEntity : Codable
  • The modern version of a wit response.

    See more

    Declaration

    Swift

    public struct WitModernResponse : Codable, WitResponseProtocol
  • The result of wit’s interpretation.

    See more

    Declaration

    Swift

    public struct WitOutcome : Codable
  • The root of the json response sent by WienBotKitura. In the legacy wit format, but with optional additional wienbot property that can include actions to perform by the client.

    See more

    Declaration

    Swift

    public struct WitResponse : Codable, WitResponseProtocol