Bot emulator works fine with the clear text responses but when I try to do the same via Skype the bot response with;
I don't understand, please try again
I found out that Skype auto-formats the email by wrapping it in <a />
tags and the dialog doesn't proceed after the prompt.
Based on the code at https://github.com/99xt/jira-journal/ the prompt is just a text and no validations.
builder.Prompts.text(session, `What's your domain username or office email address, ${name}?`);
Bot response;
<a href="mailto:myemail@whatever.com">myemail@whatever.com</a>
When I reproduce the same on the emulator by typing the what Skype was sending to bot I managed to reproduce the issue, and here's what sniffing into the bot conversations looks like;
User: What's your domain username or office email address, User?
ChatConnector: message received.
User: <a href="mailto:myemail@whatever.com">myemail@whatever.com</a>
UniversalBot("worklog:/") routing "<a href="mailto:myemail@whatever.com">myemail@whatever.com</a>" from "emulator"
Library("worklog:/")recognize() recognized: /worklog(0.999999046)
Library("BotBuilder").findRoutes() explanation:
ActiveDialog(0.999999046)
Library("worklog").findRoutes() explanation:
GlobalAction(0.999999046)
.BotBuilder:prompt-text - WARN: Prompt - no intent handler found for /worklog
.BotBuilder:prompt-text - Session.send()
.BotBuilder:prompt-text - Session.sendBatch() sending 1 message(s)
User: I didn't understand. Please try again.
I am a bit stuck what's supposed to do. How do I overcome this issue of Skype auto-formatting the clear text as an email?
via Kosala Nuwan Perera
No comments:
Post a Comment