Basic getting started questions

Hi all, Im trying to create a bot with this simple goal: detect a ticker in the question and provide the price for the ticker - some pre-defined exchange.

Thus, the goal is to identify arbitrary tickers there and use them without having to exhaustively provide all the tickers and reply back with the provided ticker.

Any help is appreciated.

1 Like

Hi @listaction,

Okay, so far you added a new intent for ticker detection. Next, you should:

  • Register the new intent (stock_price) - just append it as a new item at the end of the intents section
  • Register the new entity (symbol) - append it at the end of the entity section
  • Implement an action that will provide the price for the detected ticker

Once you have done that, retrain the model and test it out.

Hope this is enough to get you started. Let me know if you get stuck.

@zezutom, thank you for the reply. my question is a different one. I’ve done all those things you describe (you’ll notice that in the commit diff) my question is: How do i support arbitrary tickers whereby the , what is the price of “blah” is tokenized without having to provide a list of all the tickers and train it, and reply back with “blah” (the ticker) when the bot utter’s something.

@listaction You could create a custom action to do what you’re trying to do.

@listaction in the commit diff I can only see you’ve registered the intent, but that’s fine - you seem to understand the basics. To answer you question about arbitrary tickers, I think you still need to provide more than just a few examples. The list doesn’t have to be exhaustive though. Also, I assume ticker names will probably follow certain pattern. If that’s the case, then you can easily define a regex that reliably identifies a ticker - have a look at the regex part of entity extraction.