Aktualizacja Diamond i zbudujemy wam własną aplikację dla systemu Android lub iOS
Bot Libre Forum

Correct web API usage

w admin wysłany Dec 8 2014, 18:30

Just a note on how to correctly use the web API.

When you use the web API ensure that you pass your application id. An app id is free, and you can easily get one from your user page. You need to pass your app id on every request.

If you are going to extensively use a bot that does not belong to you, it would be recommended to fork your own clone of the bot for your purpose. Avoid spamming someone else's bot.

The chat API returns a conversation id when you start a conversation. Ensure you pass this id on subsequent messages, otherwise each message will be a different conversation and session. This will consume more resources, hit your message limit sooner, and will not give the bot any context to the conversation, so it will have poor replies.

i.e.

http://www.botlibre.com/rest/botlibre/form-chat?instance=165&message=what+is+a+chat+bot&conversation=1234&application=12345654321


There have been a few API abuses lately. If you are the one accessing Cindy or Chris, please contact [email protected]


by sanjanasrinath posted Jul 24 2023, 3:24

getting error Invalid application id - '3376403907580542198 '  even after entering the correct one from user page 

https://www.botlibre.com/rest/api/form-chat?instance=48424994&application=3376403907580542198


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 718, today: 1, week: 5, month: 86

by admin posted Jul 25 2023, 13:30
I tested your URL and it works fine.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 658, today: 1, week: 8, month: 85

Identyfikator: 668076
Tagi: api, spam, limits
Wysłany: Dec 8 2014, 18:30
Aktualizacja: Dec 8 2014, 18:34
Odpowiedzi: 2
Widok: 5251, dziś: 2, tydzień: 7, miesiąc: 100
0 0 0.0/5