kind: AdaptiveDialog
modelDescription: This tool allows you to get information on your ticket by looking for it with your incident number for ServiceNow. These are also known as service requests or support tickets.
inputs:
  - kind: AutomaticTaskInput
    propertyName: IncNum
    name: Incident Number
    description: This is the ticket or incident number that you would like to get the details from ServiceNow. Value should follow the Regex format of INC[0-9]{7}
    entity: StringPrebuiltEntity
    shouldPromptUser: true

beginDialog:
  kind: OnRecognizedIntent
  id: main
  intent: {}
  actions:
    - kind: BeginDialog
      id: sizG0R
      input:
        binding:
          sysparm_query: =Concatenate("number=",Topic.IncNum)

      dialog: cr5e0_itHelpdeskTicketAssistant.component.ServiceNow-ListRecords

inputType:
  properties:
    IncNum:
      displayName: Incident Number
      description: This is the ticket or incident number that you would like to get the details from ServiceNow. Value should follow the Regex format of INC[0-9]{7}
      type: String