Skip to content

Commit a669309

Browse files
one small copypasta error
1 parent 4c00909 commit a669309

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/content/tutorial/custom-steps-workflow-builder-new.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,16 @@ def handle_sample_step_event(inputs: dict, say: Say, fail: Fail, logger: logging
276276

277277
#### Anatomy of a `.function()` listener {#function-listener-anatomy}
278278

279-
The function listener registration method (`.function()`) takes two arguments:
279+
The function decorator (`function()`) accepts an argument of type `str` and is the unique callback ID of the step. For our custom step, we’re using `sample_step`. Every custom step you implement in an app needs to have a unique callback ID.
280280

281-
* The first argument is the unique callback ID of the step. For our custom step, we’re using `sample_step`. Every custom step you implement in an app needs to have a unique callback ID.
282-
* The second argument is an asynchronous callback function, where we define the logic that will run when Slack tells the app that a user in the Slack client started a workflow that contains the `sample_step` custom step.
281+
The callback function is where we define the logic that will run when Slack tells the app that a user in the Slack client started a workflow that contains the `sample_step` custom step.
283282

284-
The callback function offers various utilities that can be used to take action when a function execution event is received. The ones we’ll be using here are:
283+
The callback function offers various utilities that can be used to take action when a step execution event is received. The ones we’ll be using here are:
285284

286-
* `client` provides access to Slack API methods — like the `chat.postMessage` method, which we’ll use later to send a message to a channel
287285
* `inputs` provides access to the workflow variables passed into the step when the workflow was started
288-
* `fail` is a utility method for indicating that the step invoked for the current workflow step had an error
286+
* `fail` indicates when the step invoked for the current workflow step has an error
287+
* `logger` provides a Python standard logger instance
288+
* `say` calls the `chat.Postmessage` API method
289289

290290
#### Understanding the function listener's callback logic {#function-listener-callback-logic}
291291

0 commit comments

Comments
 (0)