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
See moreAction.fallbackForDeclaration
Swift
public struct Action : Lookupable -
Display a button that requests the location - useful for facebook only:
See morecurl "https://dev.api.caritas.wave-ai.com/message?q=wo+ist+der+naechste+container" \ -H 'Content-Type: application/json'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),
See moreadditionalQuickReplieswill contain a “Info: Bibilothek” button, that sends “biblothek” and triggers the WienBot story.Declaration
Swift
public struct QuickReply : Codable -
WienBotKitura accepts GET queries queries to interpret a message. The message
See moreqis message to be interpreted. Example:https://dev.api.wienbot.wave-ai.com/message\ ?q=ich%20habe%20meinen%20schl%C3%BCssel%20verloren&nowave=falseDeclaration
Swift
public struct ServerRequest : Codable, Hashable, Equatable -
An entity found in an outcome.
See moreDeclaration
Swift
public struct WitEntity : Codable -
The modern version of a wit response.
See moreDeclaration
Swift
public struct WitModernResponse : Codable, WitResponseProtocol -
The result of wit’s interpretation.
See moreDeclaration
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.
- Example without wienbot: https://dev.api.wienbot.wave-ai.com/message?q=wie%20komme%20ich%20zum%20schwedenplatz
- Example with wienbot: https://dev.api.wienbot.wave-ai.com/message?q=ich%20habe%20meinen%20schl%C3%BCssel%20verloren
Declaration
Swift
public struct WitResponse : Codable, WitResponseProtocol
Other Structures Reference