Watson Conversation Api

Unofficial Content

Conversation

 

Documentation: http://www.ibm.com/watson/developercloud/conversation/api/v1/#send_message

 

Send Message

Set User Context:

&UserContext.Set('counter','0')

&UserContext.Set('isEnabled', 'true')

&UserContext: ‘Properties’ data type. Set of (key, value) where both in this case will have to be Strings. 

Invocation

&ConversationMessage = SendMessage(&text, &Context, &WorkspaceId, &UserContext)

Parameters

In: &text variable with text of type: Text, GenexusWatsonSDK

In: &Context variable based on the SDT: Context.

In: &WorkspaceId variable varchar with the workspace value.

InOut: &UserContext variable of type: Properties. Set (key, value)

           Out: &ConversationMessage variable based on the SDT: ConversationMessage. 

                   The service response text is saved in the node &ConversationMessage.output.text.