Sometimes you want the default answer block to only send a message once instead of sending a reply to every message of the user. Thanks to the Set Up User Attribute and Go To Block plugin this is possible to set up in just a few minutes.
- Create a new block but leave it empty. This block will be triggered when the user already received the default answer and by leaving it empty we cause the bot to stop processing the user's message without sending a response.
- Go to the Default answer block, create a Go To Block plugin and below it a Set Up User Attribute plugin.
- In the Set Up User Attribute plugin create a new attribute and set the value to yes or similar.
- In the Go To Block Plugin check if the value equal to what the Set Up User Attribute plugin assigns to the attribute and link the plugin to the empty block.
When a user now triggers the default answer for the first time the Go To Block Plugin will not execute as the value of the attribute is still empty. It will then proceed to set the attribute using the Set Up User Attribute plugin and show all the cards with content below. If the user then triggers the Default answer block a second time the value of the attribute will match the value in the Go To Block plugin and the user will be routed to an empty block, stopping the processing without triggering the other cards in the Default Answer block.