AI Agent Workflows icon
eCommerce & WooCommerce

AI Agent Workflows hooks reference

  • By Dragwyb
  • v0.1.4
  • Updated

AI Agent Workflows 0.1.4 has 7 actions and 3 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when AI Agent Workflows fires an action
add_action( 'dragaiw/loaded', function( $container ) {
	// Your code runs here.
}, 10, 1 );

// Change a value AI Agent Workflows is about to use
add_filter( 'dragaiw_agent_max_iterations', function( $max, $config ) {
	// Change $max here.
	return $max;
}, 10, 2 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • src/Service/Agent/AgentService.php line 562
    /**
     * Filters the AI Agent max tool-loop iterations (capped).
     */
    apply_filters( 'dragaiw_agent_max_iterations', $max, $config );
  • src/Integration/WordPress/WordPressActionHelper.php line 781
    /**
     * Seconds after a dragaiw create/update during which save_post is ignored for
     * that post (prevents immediate echo triggers). After this window, human edits
     * of the post may start workflows again.
     */
    apply_filters( 'dragaiw_automated_post_grace_seconds', 45, $post_id );
  • src/Integration/WordPress/WordPressActionHelper.php line 204
    /**
     * Filters WordPress list action result size (posts, media, comments, users).
     */
    apply_filters( 'dragaiw_wp_list_limit', $limit );
  • src/Core/Plugin.php line 211
    /**
     * Fires once the plugin has finished loading and confirmed its environment
     * requirements are met.
     */
    do_action( 'dragaiw/loaded', $this->container );
  • src/Service/NodeExecutionService.php line 71
    /**
     * Fires immediately after a single node executes, whether it succeeded or
     * failed.
     */
    do_action( 'dragaiw/node/after_execute', $node, $result, $context );
  • src/Service/NodeExecutionService.php line 57
    /**
     * Fires immediately before a single node executes.
     */
    do_action( 'dragaiw/node/before_execute', $node, $context );
  • src/Core/Plugin.php line 283
    /**
     * Fires once, letting core and third-party code register trigger and action
     * node types into the registry.
     */
    do_action( 'dragaiw/nodes/register', $this->container->get( NodeTypeRegistry::class ) );
  • src/Service/WorkflowExecutionService.php line 338
    /**
     * Fires immediately before a workflow run starts executing nodes. The
     * `dragaiw_workflow_runs` row already exists with status `running`. See
     * docs/hooks-reference.md.
     */
    do_action( 'dragaiw/workflow/before_run', $workflow_id, $trigger_payload );
  • src/Admin/Menu.php line 288
    do_action( 'dragaiw_admin_notices' );
  • src/Service/WorkflowExecutionService.php line 526
    do_action( 'dragaiw/workflow/after_run', $finished, $trigger_payload );

Generated from AI Agent Workflows's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: