{
  "actions": [
    {
      "description": "Default Welcome Intent",
      "name": "MAIN",
      "fulfillment": {
        "conversationName": "welcome"
      },
      "intent": {
        "name": "actions.intent.MAIN"
      }
    },
    {
      "description": "Eliza response",
      "name": "Raw input",
      "fulfillment": {
        "conversationName": "rawInput"
      },
      "intent": {
        "name": "raw.input",
        "parameters": [{
          "name": "feelings",
          "type": "SchemaOrg_Text"
        }],
        "trigger": {
          "queryPatterns": [
            "my emotional state is $SchemaOrg_Text:feelings",
            "getting some advice",
            "feeling better",
            "how to feel better",
            "I am feeling $SchemaOrg_Text:feelings"
          ]
        }
      }
    }
  ],
  "conversations": {
    "welcome": {
      "name": "welcome",
      "url": "YOUR_ENDPOINT_URL",
      "fulfillmentApiVersion": 2
    },
    "rawInput": {
      "name": "rawInput",
      "url": "YOUR_ENDPOINT_URL",
      "fulfillmentApiVersion": 2
    }
  }
}

{
  "actions": [
    {
      "description": "Default Welcome Intent",
      "name": "MAIN",
      "fulfillment": {
        "conversationName": "welcome"
      },
      "intent": {
        "name": "actions.intent.MAIN"
      }
    },
    {
      "description": "Eliza response",
      "name": "Raw input",
      "fulfillment": {
        "conversationName": "rawInput"
      },
      "intent": {
        "name": "raw.input",
        "parameters": [{
          "name": "feelings",
          "type": "org.schema.type.Text"
        }],
        "trigger": {
          "queryPatterns": [
            "my emotional state is $org.schema.type.Text:feelings",
            "getting some advice",
            "feeling better",
            "how to feel better",
            "I am feeling $org.schema.type.Text:feelings"
          ]
        }
      }
    }
  ],
  "conversations": {
    "welcome": {
      "name": "welcome",
      "url": "YOUR_ENDPOINT_URL",
      "fulfillmentApiVersion": 2
    },
    "rawInput": {
      "name": "rawInput",
      "url": "YOUR_ENDPOINT_URL",
      "fulfillmentApiVersion": 2
    }
  }
}

Update to Schema types to use API v2
Update to Schema types to use API v2

Bug: 111412346
Change-Id: I2118dc1cc0d6b300ec1411ba92aa27ee600c1037
