Your app function is executed as a step in a workflow
This event notifies you when a custom function is executed as a step in a workflow.
{
type: 'function_executed',
function: {
id: 'Fn123456789O',
callback_id: 'sample_function',
title: 'Sample function',
description: 'Runs sample function',
type: 'app',
input_parameters: [
{
type: 'slack#/types/user_id',
name: 'user_id',
description: 'Message recipient',
title: 'User',
is_required: true
}
],
output_parameters: [
{
type: 'slack#/types/user_id',
name: 'user_id',
description: 'User that completed the function',
title: 'Greeting',
is_required: true
}
],
app_id: 'AP123456789',
date_created: 1694727597,
date_updated: 1698947481,
date_deleted: 0
},
inputs: { user_id: 'USER12345678' },
function_execution_id: 'Fx1234567O9L',
workflow_execution_id: 'WxABC123DEF0',
event_ts: '1698958075.998738',
bot_access_token: 'abcd-1325532282098-1322446258629-6123648410839-527a1cab3979cad288c9e20330d212cf'
}
The function_executed
event is an event generated in the context of a Slack workflow run. To receive this event, your app must have a function which is used as a step in a workflow. When the workflow is triggered and the steps of the workflow begin to execute, an event will be dispatched for any function which belongs to your app.
When an event occurs, we will send an HTTP POST request to your Request URL. The outer payload is uniform across all Events API methods, and contains fields like team_id
and event
. Learn more