---
title: "fswa_ai_transport — Filter Hook"
description: "Overrides the LLM transport the Build with AI agent talks through, bypassing built-in provider resolution."
url: "https://wpwebhooks.org/docs/fswa-ai-transport/"
---

[WP Webhooks](/) / [Docs](/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

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $transport | param | LlmTransportInterface|null | yes | Transport 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

[Build with AI](/docs/build-with-ai/)[Credentials Vault](/docs/credentials-vault/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

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

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_ai_transport — Filter Hook — Webhook Actions Docs","description":"Overrides the LLM transport the Build with AI agent talks through, bypassing built-in provider resolution.","url":"https://wpwebhooks.org/docs/fswa-ai-transport/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
