mithunscout
Posts: 14
Joined: Sun Oct 29, 2017 6:49 pm

Syn Oscova Widget Channel not working

Thu Apr 26, 2018 11:37 pm

Hi

Have attached my Syn Oscova Bot Code for Widget Channel. Even I have followed all the steps as per documentation there is some issue with package file. The bot doesnot pick up the responses as per Package file

Request you to assist with the same.

Regards
Mithun
Attachments
Aryabhata_V3.zip
(5.09 MiB) Downloaded 29 times

User avatar
Fantom
Help & Support
Posts: 304
Joined: Fri Oct 25, 2013 9:20 pm

Re: Syn Oscova Widget Channel not working

Fri Apr 27, 2018 5:54 pm

I opened the single SIML document file and found the following problem:

1. The knowledge base is a mix with SIML classic and SIML Modern but Oscova only uses SIML Modern.
2. SIML Classic tags like <Goto>, <Set>, <Map> etc will never be processed by SIML Modern interpreter as they dont exist in the specification
3. SIML Classic patterns are directly used as SIML Modern expression values. SIML Modern <Expression> tag and Oscova expression values should not have non-alphanumeric symbols in them.


solution is to use the migration guide to create the knowledge base or to remove Intents that have SIML classics tags

also we have this Oscova small-talk repository that you can use but you will have to clean it a bit as it was created using an automated process so it has some raw data in it.

mithunscout
Posts: 14
Joined: Sun Oct 29, 2017 6:49 pm

Re: Syn Oscova Widget Channel not working

Sat Apr 28, 2018 12:34 pm

Hi
Thanks for your response.

I got the issue. to get rid of this I downloaded the Oscova Small Talk SIML Project and did the below to resolve.
a. Converted the entire SIML Project as single SIMLPACKAGE and saved the simlpk file in the BotResource folder
and
b. Converted the entire SIML Package and while renaming I saved it as "Package.txt" (as mentioned in the Syn Oscova Widget Channell website)

but still my Oscova Bot is not providing any responses.

Dim websiteUrl = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)
Dim oscovaBot = New OscovaBot()


_oscovaBotChannel = New Syn.Bot.Channels.Web.WidgetChannel(Of OscovaBot)(oscovaBot)
_oscovaBotChannel.Theme = WidgetTheme.Light
_oscovaBotChannel.Bot.Configuration.Scoring.MinimumScore = "0.7"
_oscovaBotChannel.ServiceUrl = websiteUrl + "/BotService.aspx"
_oscovaBotChannel.ResourceUrl = websiteUrl + "/BotResource/"


oscovaBot.Dialogs.Add(New AryabhataDialogs.GeneralConversations)
oscovaBot.Dialogs.Add(New AryabhataDialogs.EnergyAustraliaBotInfo)
oscovaBot.Dialogs.Add(New AryabhataDialogs.GlobalFallback)

oscovaBot.Trainer.StartTraining()

Dim slashStartRegex = New Regex("(?<!/)(/(?:start))(?(?<=\w)\b)", RegexOptions.IgnoreCase)
oscovaBot.CreateRecognizer("start", slashStartRegex)

and Package.txt file is stored in BotResource folder.

Need help with this.. Thanks...

User avatar
Fantom
Help & Support
Posts: 304
Joined: Fri Oct 25, 2013 9:20 pm

Re: Syn Oscova Widget Channel not working

Sat Apr 28, 2018 3:45 pm

The widget channel only looks for images, html content and javascript in the resource directory. You have to manually load any package file from a url as shown in the example here but as you are using SIML modern you can import SIML document using a new instance of SimlPackage class and calling the Parse() method

mithunscout
Posts: 14
Joined: Sun Oct 29, 2017 6:49 pm

Re: Syn Oscova Widget Channel not working

Sun Apr 29, 2018 7:09 pm

Hi
Thanks for your response.

I was able to load the SIML Document using following line of code

oscovaBot.Import(XDocument.Load(HttpContext.Current.Server.MapPath("~/BotResource/Smalltalk.siml")))

Actually the issue was with Server.Mappath... the Document load was unable to pick up the SIML path.

Anyways... thanks heaps for your response.

Regards
Mithun

mithunscout
Posts: 14
Joined: Sun Oct 29, 2017 6:49 pm

Re: Syn Oscova Widget Channel not working

Sun Apr 29, 2018 7:11 pm

Hi

One more help required pls.. I am looking to add buttons on responses

like confirmation messages or provide different options to user to click and navigate...

I know this can be done for Oscova bot. but not able to do it on Widget Channel

Regards
Mithun

User avatar
Fantom
Help & Support
Posts: 304
Joined: Fri Oct 25, 2013 9:20 pm

Re: Syn Oscova Widget Channel not working

Wed May 02, 2018 10:23 pm

In widget these options can be easily created by using the hint property on responses. Here is a simple example

Return to “Report Bugs and Issues”

Who is online

Users browsing this forum: No registered users and 1 guest