Is it possible to execute a function when an NPC says a specific keyword?

Hello.
Is it possible to execute a function when an NPC says a specific keyword?

I know that it’s possible to execute a function at each narrative section, but since the narrative sections tend to last longer than expected, I want to trigger specific functions when certain keywords are spoken. In other words, it’s for faster state transitions based on keywords.

Hello @PLAY4,

Welcome to the Convai Developer Forum!

You can try using the Action feature for this. Alternatively, you can manually create a script that listens to the incoming text responses and checks for specific keywords.
If the keyword is detected, you can trigger a custom function accordingly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.