abstract ArchBaseActionBot(coreBaseBotActionViewModel)

new abstract ArchBaseActionBot(coreBaseBotActionViewModel)

The Architect Scripting class for the Base Bot Action instance. Instances of this class will be created automatically by Architect Scripting as needed.

Parameters:
Name Type Description
coreBaseBotActionViewModel Object

( Internal ) an Architect core bot action view model.

Extends

Members

static, readonly displayTypeName :string

Returns the display type name string 'ArchBaseActionBot'.

static, readonly isArchBaseActionBot :boolean

Returns true indicating that this is an ArchBaseActionBot instance.

readonly followupResponseTimeout :ArchValueDuration

Specifies the amount of time to wait for a user's response to a bot prompt. A negative or NOT_SET duration will be treated as immediate.

readonly inputText :ArchValueString

The input text for the bot. This is usually only set in flows when chaining bot actions together.

readonly intentNames :Array.<string>

Returns a unique array of names of intents that are configured for the selected bot. This array contains intent names for the bot that will be executed at flow runtime. As such, for some bots like Lex bots, this requires selecting the Lex bot alias since intents are defined on the alias prior to this array being populated.

readonly sessionVariables :ArchBaseNameValuePairs

Returns the input Session Variables configured on the action.

Inherited From:

Methods

addSessionParameterNameValuePair(nameLiteralopt, valueExpressionopt) → {ArchBaseNameValuePair}

This adds a session parameter name value pair to the Call Dialogflow CX Bot action that is used to specify the session parameter''s name and corresponding value that should be assigned to it. This function functions the same as ArchBaseActionBot#addSessionVariableNameValuePair and exists because Session Variables are called Session Parameters in Dialogflow CX. On the returned ArchBaseNameValuePair:

  • the name property specifies the name of the session parameter whose value you want to set
  • the value property is the value to set on the session parameter at runtime.
Parameters:
Name Type Attributes Description
nameLiteral string <optional>

a string that specifies the name of the session parameter to set.

valueExpression string <optional>

a string expression that specifies the value to set on the session parameter.

addSessionVariableNameValuePair(nameLiteralopt, valueExpressionopt) → {ArchBaseNameValuePair}

This adds a session variable name value pair to the Base Bot action that can be used to specify the session variable's name and corresponding value that should be assigned to it. On the returned ArchBaseNameValuePair pair:

  • the name property specifies the name of the session variable whose value you want to set
  • the value property is the value to set on the session variable at runtime.
Parameters:
Name Type Attributes Description
nameLiteral string <optional>

a string that specifies the name of the session variable to set.

valueExpression string <optional>

a string expression that specifies the value to set on the session variable.

Inherited From:

getOutputByIntentName(intentName) → {ArchActionOutput}

This gets an action output for this action that matches an intent name. It will not return the built-in Failure output.

Parameters:
Name Type Description
intentName string

the name of the intent whose matching output to find

Returns:
ArchActionOutput