Maybe this script gets you some ideas:
Not script, but it might come in handy: just a few ideas using flow cards