Welcomed Interruptor

Often we encounter a moment where we wish somebody interrupts the conversation. Or raise ideas against the topic. However, most of the case people are reluctant to interrupt or contrary opinion.

The Welcomed intruder will be the one. Whenever you are faced with a situation or feel like you will be, just shout out "Hey intruder!".

Let the speech bot catch some keywords from the opponent, and let it interrupt and take care of the conversation.

This conversation bot is especially for special occasions like Chuseok, the Korean (version of) Thanksgiving Day and Lunar New Year's Day. Those are the holiday with family gatherings and have conversations. Not all conversations are charming though. There are a bunch of holiday taboos that people ask. "So when are you going to get married?".

Snippets of the conversation

WelcomedInterruptor.mp4

Code

I used array and random for the response

app.intent("MarriageYes", (conv) => {
    // Answer pool
    var marriageYesTextArray = [
        "Okay. I don't think that's the right topic to bring up.",
        "If you ask that question to me, I'll say it's none of your business.",
        `People say these things about marriage. ${marriageApiResponse}. This is sugarcoated. Don't you agree?`
    ];
    var randomNumber = Math.floor(Math.random() * marriageYesTextArray.length);    // random number creator

    conv.ask(marriageYesTextArray[randomNumber]);
});

External API

I also tried to use external API (quotable API) using the Axios method.

Few weeks before when we played the game, Google was speaking of very outdated information about what a wife if (or what is the role of the wife).

Inspired by that, I thought fetching an outdated notion on the keywords would be an interesting way to throw back the question to the adult.