APIs ‐ Workflows - altoiddealer/ad_discordbot GitHub Wiki
Workflows are for executing custom logic beyond default Endpoint behaviors (ei: add additional post-processing from a 'post_txt2img' endpoint call).
Works similarly to response_handling, using StepExecutor
Workflows are not applicable for "Main functions".
run_workflow Tag
The primary usage is via the Tags system, via the run_workflow tag.
Any string values can contain formatting syntax (for Bot Variables, or key values in current Context dict), ex: "{prompt}" will be replaced with the actual user's text.
Arguments:
| Parameter | Value Type | Description | Default |
|---|---|---|---|
| name | string | The name of the workflow | |
| queue_to | string | (optional) The name of the task queue the bot should process this in. Valid options: history_queue, gen_queue, normal_queue |
gen_queue |
| input_data | Any | (optional) The initial data to start with | {} |
| context | dict | (optional) The initial context to start with | {} |
Screenshot from dict_tags.yaml
Screenshot from dict_api_settings.yaml