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/PdP6_0z2QYehKpFadKyXJg",
...     headers={"Content-Type": "application/json"},
...     data=json.dumps({"message": "Testing hook with Python", "user": "Python"}))


cURL example:

curl -X POST "https://fleep.io/hook/u50gdD1kTPmCrsLzGDsrqA" -d 'message=TestingWithCurl'


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.