WP Webhooks / Docs / fswa_ai_transport
Filter since v2.0.0

fswa_ai_transport

Overrides the LLM transport the Build with AI agent talks through, bypassing built-in provider resolution.

$

/ Signature

apply_filters( 'fswa_ai_transport', $transport )

/ When it fires

Fires first in transport resolution, before the WordPress AI Client and stored provider keys are considered. Useful for routing the agent through a proxy or a custom backend without storing keys in WordPress.

/ Parameters

NameInTypeReqDescription
$transportparamLlmTransportInterface|nullyesTransport override. Default `null` (built-in resolution runs).

/ Returns

LlmTransportInterface|null An object implementing `LlmTransportInterface` to route all agent LLM calls through it, or `null` to fall back to the WordPress AI Client / bring-your-own-key providers.

/ Examples

Route agent calls through a custom transport

add_filter( 'fswa_ai_transport', function ( $transport ) {
    return new My_Proxy_Transport(); // implements LlmTransportInterface
} );

/ Related

Ready

Your next automation is
one sentence away.

$ wp plugin install flowsystems-webhook-actions --activate