hellostealth / stealth

An open source Ruby framework for text and voice chatbots. 🤖

Home Page:https://hellostealth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow FlowMap to specify a redirect_to flow and state

mgomes opened this issue · comments

It's possible that over a bot's lifecycle a state gets deleted from a flow. It's possible a past user may have previous session that still points to that state. If we simply delete the state, when the user re-engages the bot they will be sent to CatchAll.

Just like fails_to, we should allow a state to specify a redirects_to parameter. This allows the FlowMap to handle legacy states in a deliberate way.