Construct a AssistantV2 object.
Name | Type | Attribute | Description |
---|---|---|---|
options |
UserOptions |
Options for the service. |
Create a session.
Create a new session. A session is used to send user input to a skill and receive responses. It also maintains the state of the conversation. A session persists until it is deleted, or until it times out because of inactivity. (For more information, see the documentation.
Name | Type | Attribute | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
CreateSessionParams |
The parameters to send to the service. Properties
|
|||||||||||||
callback |
Callback<SessionResponse> | Optional |
Delete session.
Deletes a session explicitly before it times out. (For more information about the session inactivity timeout, see the documentation).
Name | Type | Attribute | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
DeleteSessionParams |
The parameters to send to the service. Properties
|
|||||||||||||||||
callback |
Callback<Empty> | Optional |
Delete labeled data.
Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the X-Watson-Metadata
header with a request that passes data.
For more information about personal data and customer IDs, see Information
security.
This operation is limited to 4 requests per minute. For more information, see Rate limiting.
Name | Type | Attribute | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
DeleteUserDataParams |
The parameters to send to the service. Properties
|
|||||||||||||
callback |
Callback<Empty> | Optional |
Get the instance of the authenticator set on the service.
List log events for an assistant.
List the events from the log of an assistant.
This method is available only with Premium plans.
Name | Type | Attribute | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
ListLogsParams |
The parameters to send to the service. Properties
|
|||||||||||||||||||||||||||||
callback |
Callback<LogCollection> | Optional |
Send user input to assistant (stateful).
Send user input to an assistant and receive a response, with conversation state (including context data) stored by Watson Assistant for the duration of the session.
Name | Type | Attribute | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
MessageParams |
The parameters to send to the service. Properties
|
|||||||||||||||||||||||||
callback |
Callback<MessageResponse> | Optional |
Send user input to assistant (stateless).
Send user input to an assistant and receive a response, with conversation state (including context data) managed by your application.
Name | Type | Attribute | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
MessageStatelessParams |
The parameters to send to the service. Properties
|
|||||||||||||||||||||
callback |
Callback<MessageResponseStateless> | Optional |
Set the service URL to send requests to.
Name | Type | Attribute | Description |
---|---|---|---|
url |
string |
The base URL for the service. |
Generated using TypeDoc
The IBM Watson™ Assistant service combines machine learning, natural language understanding, and an integrated dialog editor to create conversation flows between your apps and your users. interfaces
The Assistant v2 API provides runtime methods your client application can use to send user input to an assistant and receive a response.