Description Usage Arguments Details Value Examples
Chat with Waston after initializing a connection
1 | continue_chat(text, context, url, version, api_key, workspace)
|
text |
Whatever you want to say to Watson |
context |
context returned by your assistant |
url |
optional argument that defaults to "https://gateway.watsonplatform.net/assistant/api/v1/workspaces" |
version |
optional argument that defaults to "2018-09-20" |
api_key |
api key to connect to your watson assistant |
workspace |
Workspace api |
continue your conversation with your assistant
a list with the response and context produced by our assistant
1 2 3 4 5 6 7 8 | if(interactive()){
connection <- init(api_key, workspace)
connection[["text"]]
chat1 <- chat("Ignacio", connection, api_key, workspace)
chat1[["text"]]
chat2 <- chat("I would like flower suggestions", chat1, api_key, workspace)
chat2[["text"]]
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.