• Resolved kevinbkt10

    (@kevinbkt10)


    I want to use the chatbot for members of my site to enjoy and ask questions in a certain niche. But I wish I could limit the amount of messages sent or received so that users do not abuse my API. Is there a way to add daily usage limits per logged in member? Cookie or something similar?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @kevinbkt10,

    Yes, I have thought about this ?? So basically, I am going to add a new parameter to the shortcode. I am not sure how to call that parameter, but it might be “environment”.

    There is already a filter (explained on my website) to set the parameters dynamically. Depending on who is logged in, you can set that environment to, let’s say “chatbot-support-{userId}”, where {userId} will be replaced by the ID of the current user.

    AI Engine currently logs only the monthly usage per model, but I am going to create a new table in the DB that will keep logs about the usage depending on the date, environment, model, etc. It will be an option (not everyone wants an additional table), but it will be easy to analyze ??

    Then, there is another filter for the chatbot, that I can add very soon (in 2-3 days) that will be able to limit its usage; you will be able to hook in this filter, and depending on who is logged, and the current usage of this user, you’ll be able to return an error (the chatbot will show something like System: Sorry, I am tired to talk with you, come back next month! – haha, rude!).

    It’s actually very easy to implement on your end, it will be probably not more than 5-6 lines of code ?? I will provide an example.

    That would work for you? What do you think?

    That sounds perfect! I would like to be able to monetize this by charging people for access and to restrict this functionality to members only, and there should be a limit for free and paid users.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @lindenburger,

    Actually, could you contact me directly? Use this link: https://meowapps.com/contact. I will develop this ??

    Plus one for this, Jordy. I’d LOVE to have a custom per-user limit that can be viewed live.

    • This reply was modified 1 year, 10 months ago by troyeccles.
    Plugin Author Jordy Meow

    (@tigroumeow)

    For this @troyeccles, please also contact me through my form ??

    Anonymous User 18315536

    (@anonymized-18315536)

    I also think it is really a must have feature. Otherwise users will play with it and kill the quota (and therefore the feature)…

    Also, each user should have an indicator of its usage. Like maybe a % such as : “Quota: 87%” 0% = no more quota available for this user.

    Are you developping a solution for this or should I contact you direclty?

    Best regards

    • This reply was modified 1 year, 10 months ago by Anonymous User 18315536.
    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @highdem! Yes, for this specific feature, please contact me directly: https://meowapps.com/support/. And yes, it’s coming ??

    Anonymous User 18315536

    (@anonymized-18315536)

    Great !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to add limits for users in the chatbot.’ is closed to new replies.