Posts: 27
Joined: Sat Feb 25, 2017 7:36 pm

Oscova smalltalk

Tue Nov 14, 2017 2:06 am

Hello Dear Leslie,

I want to use Oscova smalltalk. To do this, I've used the following code. But when I enter the Hello word, the application does not respond. Would you please help me, what is the problem of the program?
Thank you in advance for any help you can provide.

Best regards

internal class WelcomeRobot : Dialog
public void Default(Context context, Result result)
var appEntity = result.Entities.OfType("app");

var bot = new OscovaBot();
WelcomeRobot dialog = new WelcomeRobot();
string location = AppDomain.CurrentDomain.BaseDirectory + "Syn\\Dialog.siml";

<Dialog Name="WelcomeRobot" IntentAlias="Greetings">
<Response>I am doing great!</Response>
<Expression>Hi there</Expression>
<Response>Well, hello there!</Response>

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

Re: Oscova smalltalk

Thu Nov 16, 2017 5:07 pm

I tested your SIML Modern code by putting it in a dialog.siml file and just importing it.

CSharp Code

public class Program
	private static void Main()
		var bot = new OscovaBot();
		var path = Path.Combine(Directory.GetCurrentDirectory(), "dialog.siml");

		bot.MainUser.ResponseReceived += (sender, args) =>
			Console.WriteLine($"Bot: {args.Response.Text}");

		while (true)
			Console.WriteLine("Please type your input...");
			var userInput = Console.ReadLine();

		Console.ReadLine(); //Keep Console On.
It is working for me. In your c# code you are using [Expression("@Greetings")] is there any recognizer created for the entity type "greeting"? please note IntentAlias is used for quick reply generation and do not create any entities.

Return to “Feature Request and Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest