TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Building a simple conversational UI – what libraries should I look at?

3 pointsby dshahover 9 years ago
I&#x27;m looking to build a simple conversational&#x2F;text UI for an existing application.<p>Need to support about 20 &quot;commands&quot; (ex: How many visitors did I get last week?).<p>Considered just creating a Domain Specific Language (many libraries for that), but want to support something closer to natural language.<p>What libraries should I look at? I&#x27;m primarily a Python guy, but am open to other languages.

3 comments

petercooperover 9 years ago
Being on Python, you have the great advantage of having access to NLTK :-) <a href="http:&#x2F;&#x2F;www.nltk.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.nltk.org&#x2F;</a> - it&#x27;s pretty intense and offers a lot, but also includes some example bots: <a href="http:&#x2F;&#x2F;www.nltk.org&#x2F;api&#x2F;nltk.chat.html" rel="nofollow">http:&#x2F;&#x2F;www.nltk.org&#x2F;api&#x2F;nltk.chat.html</a><p>My personal advice, though, is while you can definitely try to support a more &#x27;natural&#x27; type of language, you do want to define fixed formats for commands in your documentation&#x2F;help so as not to confuse users or encourage them to keep trying all sorts of variations to figure out what magic combo makes your bot work.
mindcrimeover 9 years ago
You might find AIML useful. I don&#x27;t know much about the state of AIML interpreters in Python, but I&#x27;m guessing there is at least one good one.
sharpshootover 9 years ago
www.converse.ai has an API you can use. Works cross platform - gives you Slack, SMS, chat etc out the box.