posAction(intent, action, parameters) {
    if (!this.actions[intent]) {
      return -1;
    }
    const actions = this.actions[intent];
    for (let i = 0; i < actions.length; i += 1) {
      if (
        actions[i].action === action &&
        JSON.stringify(actions[i].parameters) === JSON.stringify(parameters)
      ) {
        return i;
      }
    }
    return -1;
  }
Find the index of an action
@param {String} intent Name of the intent.
@param {String} action Name of the action.
@param {any[]} parameters list of parameters of the action.