Pull the value of user message

(Richard) #1

I have some problem w/ pull the value of user message.
For example: user send message “add 138$”.
I need this value “138$” and put it in attribute.

(Karen Barker) #2

Hi there,

You’ll be able to use the Text service to split the string and store the value you require in an Attribute.

If you have any problems please don’t hesitate to ask further. :slight_smile:

(Richard) #3

Thanks a lot I solved this problem by “slice text”, but I have another question.
Messenger:Telegram
I have a test command “/getnothing”
After this attribute “nothing” set +1
Bot send message “Count of nothing {{nothing}}”
User can use this comand permament or if i want add timer, but. If user select 2 or more message with command “/getnothing” and forward back to bot/chat my flow will start n (how many times user forward msg) times. How i can set message count or filter? Ofc user can use command but not over 2 or more at the same time.

(Karen Barker) #4

Hi there,

You’ll be able to use the value of the attribute nothing to filter the trigger of the flow. So your filter could be if attribute nothing <2 the flow triggers, otherwise nothing will happen. Alternatively you could let the flow trigger and send different messages based on the value of the attribute.

Hope this helps. :slight_smile: