checkfor feature access, before allowing a user to do somethingtrackthe usage in Autumn afterwards (if needed)
This guide shows an asynchronous approach to checking and tracking. You can also check and reserve balance in a single, atomic API call for concurrent events.
Checking feature access
Check if a user has enough remaining balance of messages, before executing the action. Thefeature_id used here is defined by you when you create the feature in Autumn.
Tracking usage
After the user has successfully used a chatbot message, you can record the usage in Autumn. This will decrement the user’s message balance.Next: Build your billing page Now, whenever your customers change their plan, they will automatically have the correct access and limits. Next, build a billing page for your customers.
Build your billing page
Display plan, balance and usage information to your customers using Autumn’s
customer state