Git Product home page Git Product logo

Comments (6)

rowanseymour avatar rowanseymour commented on July 18, 2024

For reference this is what that looks like in the current expression engine https://github.com/rapidpro/expressions/blob/master/python/temba_expressions/evaluator.py#L307

from goflow.

nicpottier avatar nicpottier commented on July 18, 2024

Ya, that's one approach is to try to evaluate everything you can then return a new template. I haven't convinced myself that that is always right given that what a variable evaluates to is context dependent. (say based on what function it is being used with)

Need to think through some of the weirder edge cases.

from goflow.

rowanseymour avatar rowanseymour commented on July 18, 2024

So here's a bold thought - what if interacting with (e.g. messaging) other contacts (besides the contact) within a flow has always been a bit of a hack, and a better solution would be say that you can only trigger new flow sessions for other contacts?

Otherwise I can't think of any mechanism that avoids sending a template back to the container and saying you need to evaluate this... which really is the job of the flow engine.

If you want to message a group from a flow - then start that group in a new flow which sends that message.

from goflow.

nicpottier avatar nicpottier commented on July 18, 2024

That's not a bad idea, fits the everything is a flow model, though with that comes all the baggage of interrupting people in flows which we still (STILL) don't have a good story for. If we could solve that then I could see that being a reasonable strategy. Would have to glance at current usage to see how popular group messaging really is.

from goflow.

rowanseymour avatar rowanseymour commented on July 18, 2024

We just chatted about this and current preferred solution is to allow messages to be sent to other contacts, but @contact is still the flow contact and we'd get rid of @step.contact. This would make it behave similarly to the send_email.

from goflow.

nicpottier avatar nicpottier commented on July 18, 2024

No group messages, only flow starts.

from goflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.