Webhooks are an easy option for do-it-yourself integrations if you’d like to post messages into Fleep conversations from other systems (with incoming webhooks) or to send messages out of Fleep conversations (with outgoing webhooks).

Be it then your monitoring system, statistics bot etc. Whatever the need is you can get started here:

How to use webhooks in Fleep? Incoming webhook example:
  • John, Scott and Paul have created a Fleep conversation called “Stats”
  • John creates a new webhook by opening Conversation Settings > Integrations and clicking on the Add button and then Create on the next popup window to generate a new custom hook
    how to use webhooks in Fleep
    how to add a webhook in Fleep
  • After that a new screen with the Hook URL will open and with this link John configures their statistics gathering script to send daily summaries to the URL https://fleep.io/hook/Z0Ph_W2LTVa8sgicQ5Gruw
    how to add a webhook in Fleep
  • Daily Stats script creates a summary and posts it via hook into the conversation.
  • John, Scott and Paul will receive new Fleep messages into „Stats“ conversation.

Python example using JSON payload:

>>> import requests
>>> import json
>>> requests.post(
... "https://fleep.io/hook/IJONmBuuSlWlkb_ttqyXJg",
... headers={"Content-Type": "application/json"},
... data=json.dumps({"message": "Testing hook with\nPython", "user": "Python"}))

cURL example:

curl -X POST https://fleep.io/hook/IJONmBuuSlWlkb_ttqyXJg -d 'message=Testing%0AWith%0ACurl'


How to convert outgoing hook payload into a plain text message?  Here’s the outgoing hook JSON format:
 "reply_url": Hook URL for reply message,
 "contacts": [
 <ContactInfo> objects related to the message(s)
 "conversations": [
 <ConvInfo> objects related to the message(s)
 "hooks": [
 <HookInfo> objects related to the message(s)
 "messages": [
 <MessageInfo> objects

See outgoing webhook examples on Github.

Detailed descriptions of info objects.