continue_chat: Continue Chat with Watson

Description Usage Arguments Details Value Examples

Description

Chat with Waston after initializing a connection

Usage

1
continue_chat(text, context, url, version, api_key, workspace)

Arguments

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

Details

continue your conversation with your assistant

Value

a list with the response and context produced by our assistant

Examples

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"]]
 }

IMWatson documentation built on May 2, 2019, 2:43 a.m.