Hi I created Telegram Chat bot using the ‘conversational ai agent.’
Now I want to set it up so that users can initially chat with the bot and send 7 messages, and then they will need to subscribe in order to continue to use the bot. The subscription will need to take place through Stripe. How is this done? Is there an easier way to do this or a template already created?
I used ‘edit fields’ node to track number of user message and then tried to insert Javascript nodes to write out code that would limit messages to 5, but I seem to now be stuck.
Would you be able to share it so we get a better picture of how the whole thing ties together? You can do it by clicking ‘</>’ and pasting in the workflow’s code (please remember ro remove any sensitive information)
There isn’t an integration like this in our Templates yet, but there are a few examples using Stripe, if you’d like to check them out: n8n workflow templates