Rate limiting allows you to limit the number of messages a user can send to your chatbot in a given period of time. This helps prevent end-users from spamming your chatbot and depleting your account credits.

How to set a rate limit

  1. Open your chatbot’s dashboard.
  2. Go to chatbot settings.
  1. Click the Security tab.
  2. Under the Rate limiting section, add a rate limit, e.g. 10 messages per minute. You can add multiple rate limits for different periods of time, such as per minute, per hour, or per day.
    The rate limit is applied to individual users. For example, if you set a rate limit of 10 messages per minute, each user can send up to 10 messages per minute.
  3. You can also add a custom error message to be displayed when the rate limit is exceeded. If left blank, a default error message will be displayed.
    The default error message is automatically translated into the language of your chatbot widget. If you override it with a custom message, it won’t be translated.
  4. Click Save.

Once you’ve set the rate limits, your chatbot will prevent end-users from sending more messages than the rate limit in a given period of time. If the rate limit is exceeded, an error message will be displayed.