Flow scenario #6: Send a poll to member on joining group

In this post, we will look at how to send a poll to a member who has newly joined the group. If we were to just send a new poll every time a member joined, only the response by that particular user would be visible to him. But, what we want to achieve is to send the same poll that was sent earlier so that he could see the responses of the other users too.

Poll action reminder banner

Broadly, I will divide the post into 2 parts:

  1. The setup
  2. Creating the Flow
  3. Testing out

The setup

In order to set this scenario, we will need to do a bunch of stuff before we write the flow:

  • Create a Public Group (or a Hub & Spoke group)
  • Send out a poll on the group

For this demo, I have created a Public group “Kaizala Flow #6” and sent a poll on the group. Below animation takes you through the poll creation and adding a response.

Create poll and add response

Creating the Flow

To create the flow, I will head out to Flow website and create a new Flow with the trigger “When a member is added to a group” and select the group “Kaizala Flow #6” from the drop down.

member added trigger

Next, I will add an action to send action reminder (to replicate the poll created in the previous step).  Since this is a poll (which is not present in the drop down), choose survey from the drop down (though we are using a poll here).

Remember to configure the Subscribers  and Send to all Subscribers from advanced (as we want to send the poll only to the new member).

action reminder

For the action instance, in case the poll does not show up in the drop down, you could query the polls sent on the group using API and get the action id (shown below).

Fetching poll instance API.png

The complete flow just comprises of 2 blocks – the member added trigger and send action reminder action.

Flow screengrab

Testing out

Now that we have the setup ready, lets test it out. (For testing out, will need another Kaizala endpoint to subscriber to the group). I will join the group using the QR code. [Sharing the group QR code and numeric code below in case you want to experience.]

Group join details.png

On joining the group with another Kaizala endpoint, I get the poll and on answering the poll – we can see the responses given by other users. Below animation shows the experience.

Join group flow

Hope that was helpful. Let me know your comments / suggestions through the contact page. Thank you for reading!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s