public class AssistantCreator extends Creator<Assistant>
Constructor and Description |
---|
AssistantCreator() |
Modifier and Type | Method and Description |
---|---|
Assistant |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
AssistantCreator |
setCallbackEvents(String callbackEvents)
Space-separated list of callback events that will trigger callbacks..
|
AssistantCreator |
setCallbackUrl(String callbackUrl)
A user-provided URL to send event callbacks to..
|
AssistantCreator |
setCallbackUrl(URI callbackUrl)
A user-provided URL to send event callbacks to..
|
AssistantCreator |
setFallbackActions(Map<String,Object> fallbackActions)
The JSON actions to be executed when the user's input is not recognized as
matching any Task..
|
AssistantCreator |
setFriendlyName(String friendlyName)
A text description for the Assistant.
|
AssistantCreator |
setInitiationActions(Map<String,Object> initiationActions)
The JSON actions to be executed on inbound phone calls when the Assistant has
to say something first..
|
AssistantCreator |
setLogQueries(Boolean logQueries)
A boolean that specifies whether queries should be logged for 30 days further
training.
|
AssistantCreator |
setStyleSheet(Map<String,Object> styleSheet)
The JSON object that holds the style sheet for the assistant.
|
AssistantCreator |
setUniqueName(String uniqueName)
A user-provided string that uniquely identifies this resource as an
alternative to the sid.
|
create, createAsync, createAsync
public AssistantCreator setFriendlyName(String friendlyName)
friendlyName
- A text description for the Assistant. It is non-unique
and can up to 255 characters long.public AssistantCreator setLogQueries(Boolean logQueries)
logQueries
- A boolean that specifies whether queries should be logged
for 30 days further training. If false, no queries will be
stored, if true, queries will be stored for 30 days and
deleted thereafter. Defaults to true if no value is
provided.public AssistantCreator setUniqueName(String uniqueName)
uniqueName
- A user-provided string that uniquely identifies this
resource as an alternative to the sid. Unique up to 64
characters long.public AssistantCreator setCallbackUrl(URI callbackUrl)
callbackUrl
- A user-provided URL to send event callbacks to.public AssistantCreator setCallbackUrl(String callbackUrl)
callbackUrl
- A user-provided URL to send event callbacks to.public AssistantCreator setCallbackEvents(String callbackEvents)
callbackEvents
- Space-separated list of callback events that will
trigger callbacks.public AssistantCreator setFallbackActions(Map<String,Object> fallbackActions)
fallbackActions
- The JSON actions to be executed when the user's input
is not recognized as matching any Task.public AssistantCreator setInitiationActions(Map<String,Object> initiationActions)
initiationActions
- The JSON actions to be executed on inbound phone
calls when the Assistant has to say something first.public AssistantCreator setStyleSheet(Map<String,Object> styleSheet)
styleSheet
- The JSON object that holds the style sheet for the
assistantpublic Assistant create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.