Webhook triggers are used to send messages between apps and Feishu. The Webhook function in Feishu Flow provides a URL, and by setting this URL in another app that supports Webhook message notifications, you can send messages from the app to Feishu Flow.
Getting Webhook URL
- 2.Click Create Feishu Flow. Select Webhooks.
- 3.Select a trigger. In most cases, you should use Catch Hook.
- 4.Go to the Options page. Click the Copy icon.
Configuration your app
- 5.Enter an app that supports Webhook. Paste the Webhook URL in the appropriate place.
Configuring Feishu Flow
- 6.Return to the Feishu Flow Settings page. Enter your data in JSON format or the sample data pushed by Webhook.
{
"events":[
{
"id":1,
"name":"Tom"
},
{
"id":2,
"name":"Mike"
}
]
}
- 7.Select a Picker such as events, or leave this field empty.
Note: For JSON text containing an array, if you set the Picker as the key of the array, Feishu flow uses the picker to split the elements of the array and triggers an operation for each element corresponding to the key.
In the example above, set events
as the Picker.
- Select Feishu Message as the next action. Choose Send message from robot.
- Click the + to bring up the choices of
events.id
and events.name
.
- View the following two Feishu messages when the JSON data shown above is received.
If you chose to leave the picker empty, you can select the entire events array in the Options step.
- Set Feishu Message as the Next Action. Choose Send message from robot. Click the + button. Select the entire events array.
Then you will receive the following Feishu message when a Webhook message arrives.