Skip to content

Instantly share code, notes, and snippets.

@cherdt
Last active March 16, 2024 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherdt/f29a847a08fdc24a42a8e427e079310c to your computer and use it in GitHub Desktop.
Save cherdt/f29a847a08fdc24a42a8e427e079310c to your computer and use it in GitHub Desktop.
a simple chatbot definition
---
- name: Greetings Bot
- match: intro
replies:
- i'm just learning to be a chatbot. try saying 'hello'
- match: hello|hi|yo
replies:
- howdy
- hi
- salutations
- match: "do you like ([^?]+)"
replies:
- "I love %1!"
- "I've never tried %1, but I'd like to"
- match: .*talk
replies:
- I like to talk about you!
- What do you want to talk about?
- match: bye|goodbye
replies:
- goodbye
- see ya
- later
- match: ".*"
replies:
- sorry, I don't understand
- does not compute
- i'm really just learning
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment