jimmathew999
Posts: 10
Joined: Mon Jun 12, 2017 10:25 am

Form flow using Oscova Web Widget

Mon Feb 26, 2018 12:00 pm

I would like to try form flow kind of option using Oscova Web Widget. Do you have option similar to Microsoft form flow? Similar to this http://www.c-sharpcorner.com/article/ge ... framework/.

If yes, Could you please guide me to the right resource?

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

Re: Form flow using Oscova Web Widget

Mon Feb 26, 2018 1:14 pm

if you are trying to create options for a bot message you can use the vertical bar as delimiter in Hint property.

In SIML Modern

SIML Code


<Siml>
  <Dialog Name="CommitToDatabase">
    
    <Intent Name="UpdateDetail">
      <Expression Value="Commit to database" />
      <Response Hint="Yes|No">
      Are you sure you wish to commit the details to database?
      <Context Add="commit-db" Lifespan="1" /></Response>
    </Intent>
    
  </Dialog>
</Siml>

or in OSCOVA intent

CSharp Code


[Expression("commit to database")]
public void CommitToDatabase(Context context, Result result)
{
	var response = new Response
	{
		Text = "Are you sure?",
		Hint = "Yes|No"
	};
	result.SendResponse(response);
	context.Add("commit-db", 1);
}

Any option that will be selected by the user will be sent back as a user message to the bot.

jimmathew999
Posts: 10
Joined: Mon Jun 12, 2017 10:25 am

Re: Form flow using Oscova Web Widget

Mon Feb 26, 2018 2:54 pm

Thank You so much Franzz for your quick support.

jimmathew999
Posts: 10
Joined: Mon Jun 12, 2017 10:25 am

Re: Form flow using Oscova Web Widget

Tue Feb 27, 2018 1:09 am

Which is the best approach for web widget bot development? using SIML modern or Oscova?
I'll be communicating with sql server database for most requirements.

User avatar
Leslie
Lead Software Architect
Posts: 353
Joined: Fri Sep 14, 2012 12:20 pm
Contact: Website

Re: Form flow using Oscova Web Widget

Tue Feb 27, 2018 11:59 am

SIML Modern specification was designed around OSCOVA architecture to assist developers quickly prototype responses instead of writing hundreds of intents with simple responses.

If you are working with database my personal recommendation would be that you write down important codes within OSCOVA intents which would render greater flexibility on a long run. Use SIML Modern as an interface for quick replies and small-talk.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests