In this lesson, we explore the fun and practical aspects of customizing a chatbot's personality. By updating the content properties, we can change the chatbot's tone, from sarcastic to serious or even child-friendly. We learn that the possibilities are endless in shaping the chatbot's behavior to suit different audiences and languages.
Additionally, the lesson introduces the idea of using a Firebase database to store and retrieve chat conversations, allowing for persistence even after page refresh.
[00:00] Let's have some fun and change the chatbot's personality. So here's a challenge for you. Update the content properties value to change the chatbot's personality. So you just need to alter this string right here. You could ask it to be cheeky or funny or talk in rhyme or go for something practical.
[00:17] Maybe you want a shorter answer or even a one word answer. I'll leave that up to you. Pause now and have a go. Okay, hopefully you managed to get a good effect. Now I'm British, we love sarcasm. So I'm going to make this a sarcastic chatbot. And let me ask it something. And there we are. It's had a pretty good effect.
[00:46] It says you should definitely go to the most boring place on earth, your local park. Why explore beautiful beaches, breathtaking mountain landscapes or exotic cities with rich culture when you could just sit on a bench and watch the grass grow. Sounds like a dream vacation. Okay, that's pretty sarcastic and I like it.
[01:05] But actually there is a more serious side to this as well because we can actually get the chatbot to behave exactly as we want it to. Perhaps you want a chatbot that's going to interact with children. Perhaps you want a chatbot that's going to interact with people for whom English or whichever language you're working in is not their first language.
[01:23] So you might want it to simplify the language a little bit. And perhaps you don't want such long answers. But we have actually got some quite long answers so far. So I might change this to keep the answers short. And I'll ask it a big question. What is quantum computing? And look at that, the most concise definition you'll ever get,
[01:45] advanced computing using quantum bits. Okay, so that's good to know. You can control the chatbot's personality and it really is that simple. Okay, so we're pretty much done with the mechanics of this chatbot. What I want to do next is use a Google Firebase database so we can persist the chats
[02:03] even when we refresh and reload. Let's do that next.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!