treethought / flask-assistant

Framework for Building Virtual Assistants with Dialogflow and python
Apache License 2.0
379 stars 101 forks source link

Sending two simple responses #108

Closed albertusdev closed 5 years ago

albertusdev commented 5 years ago

Hi, According to this link, we can send two simple responses in one turn, right?

Is there a way to send two simple responses on one turn using ask/tell? It seems like it's really hard to send two response with your library since you make message as protected variable.

Thanks!

treethought commented 5 years ago

you can now add an additional message using the add_msg method. Be sure to upgrade first with pip install -U flask-assistant

return ask("Here's one message").add_msg("Here's another")