google.dialogflow.ask

type: meya.google.dialogflow.component.ask
class: DialogflowAskComponent
path: /meya/google/dialogflow/component/ask/ask.py
signature: ask, expect

Fields

fielddescription               requiredsignaturetypedefault
specOverride the original spec for this elementSpecnull
integrationDialogflowIntegrationRef
languagestrnull
intentstr
list
NoneType
null
intent_regexstrnull
min_confidenceReal0.75
max_confidenceReal1.0
input_contextbool
str
list
NoneType
true
contextSend context data with this component's eventdict{}
sensitiveMark this component's event as sensitiveboolfalse
triggersActivate these dynamic triggers when the component runslist[]
quick_repliesList of buttons that the user can select for replieslist[]
composerComposerElementSpecfocus: text
placeholder:
collapse_placeholder:
visibility: show
headerOverride the header for this componentHeaderElementSpecbuttons:
title:
progress:
milestones:
extra_buttons:
markdownOverride the bot Markdown mode for this componentlist
bool
NoneType
null
askQuestion to send to the userstr
retriesReal"inf"
error_messagestr"Invalid input, please try again."
catchallbooltrue
expectExpectnull

Examples

Basic

triggers:
  - keyword: meya.google.dialogflow.component.ask
steps:
  - integration: integration.dialogflow
    ask: STRING
    expect: dialogflow

Full

triggers:
  - keyword: meya.google.dialogflow.component.ask
steps:
  - spec:
      type: STRING
      data:
        STRING: ANY
      timeout: 123
      trigger_when: ANY
    integration: integration.dialogflow
    language: STRING
    intent:
      - item1
      - item2
    intent_regex: STRING
    min_confidence: 123
    max_confidence: 123
    input_context: STRING
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    quick_replies:
      - url: STRING
        javascript: STRING
        button_id: STRING
        context:
          STRING: ANY
        default: false
        disabled: false
        divider: false
        icon:
          url: STRING
          color: STRING
          path: STRING
        action: COMPONENT
        value: ANY
        result: ANY
        data:
          STRING: ANY
        magic: false
        type: text|url|static|menu|divider|action|flow_next|component_next
        menu:
          - BUTTONELEMENTSPEC
        text: STRING
    composer:
      focus: file|image|text|blur
      placeholder: STRING
      collapse_placeholder: STRING
      visibility: collapse|hide|show
    header:
      buttons:
        - url: STRING
          javascript: STRING
          button_id: STRING
          context:
            STRING: ANY
          default: false
          disabled: false
          divider: false
          icon:
            url: STRING
            color: STRING
            path: STRING
          action: COMPONENT
          value: ANY
          result: ANY
          data:
            STRING: ANY
          magic: false
          type: text|url|static|menu|divider|action|flow_next|component_next
          menu:
            - BUTTONELEMENTSPEC
          text: STRING
      title:
        text: STRING
        icon:
          url: STRING
          color: STRING
          path: STRING
      progress:
        value: 123
        show_percent: false
      milestones:
        - text: STRING
          current: false
      extra_buttons:
        - url: STRING
          javascript: STRING
          button_id: STRING
          context:
            STRING: ANY
          default: false
          disabled: false
          divider: false
          icon:
            url: STRING
            color: STRING
            path: STRING
          action: COMPONENT
          value: ANY
          result: ANY
          data:
            STRING: ANY
          magic: false
          type: text|url|static|menu|divider|action|flow_next|component_next
          menu:
            - BUTTONELEMENTSPEC
          text: STRING
    markdown:
      - format|linkify|breaks|typographer
    ask: STRING
    retries: 123
    error_message: STRING
    catchall: false
    expect: dialogflow