Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NLU missing properties when using Facebook Messenger Platform with Lex #1358

Open
1 of 4 tasks
jrglg opened this issue Jun 22, 2022 · 2 comments
Open
1 of 4 tasks

NLU missing properties when using Facebook Messenger Platform with Lex #1358

jrglg opened this issue Jun 22, 2022 · 2 comments

Comments

@jrglg
Copy link
Contributor

jrglg commented Jun 22, 2022

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Current Behavior

Jovo ìnput object doesn't have nlu property when using Lexv2 plugin, but it does when using Nlp.js plugin.
Also, the tsame Lex plugin is working in Jovo Debugger.

So, no intent is present and UNHANLDED is always matched.

Lexv2 Plugin:

export const lexNluPlugin = new LexSlu({
  bot: {
    id: 'X',
    aliasId: 'X',
  },
  locale: 'es_ES',
  region: 'eu-west-1',
  credentials: {
    accessKeyId: 'X',
    secretAccessKey: 'X+LKgu',
  },
  fallbackLocale: 'es_ES',
  asr: true,
  nlu: true
});

Faceboook platform plugin (missing nlu in input):

new FacebookMessengerPlatform({
  pageAccessToken:
    'xxxxx',
  verifyToken: 'xxxxx',
  plugins: [lexNluPlugin],
  session: {
    expiresAfterSeconds: 5,
  },
  enabled: true,
  skipTests: true,
}),

Jovo Debugger plugin (nlu is present in input):

new JovoDebugger({
  skipTests: true,
  nlu: lexNluPlugin,
  webhookUrl: 'https://webhook.jovo.cloud',
  debuggerConfigPath: './jovo.debugger.js',
  modelsPath: './models',
  enabled: true,
  ignoredProperties: ['$app', '$handleRequest', '$platform', '$mongoDb'],
}),

Your Environment

  • Jovo Framework version used: 4 latest
  • Operating System: Windows 10
@jankoenig
Copy link
Member

Hi @jrglg,

Quick question for debugging: Does it work if you set asr: false in the LexSlu config?

@jrglg
Copy link
Contributor Author

jrglg commented Jun 22, 2022

Hi @jankoenig,

no, same result.

This doesn't help neither

  input: {
    supportedTypes: ['TEXT']
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants