Skip to main content
Give your product’s AI agent the ability to interact with your tenants’ connected apps. Membrane provides the tools — your agent uses them to read data, create records, send messages, and more across any connected app.

Getting Started

  1. Complete the Quickstart: Product Integrations guide.
  2. Ask your coding agent to build the agent tooling:
“Give our AI assistant tools from our tenants’ connected apps using Membrane. Use static tools loaded at session start.”
If you want to learn how it works under the hood — read on.

Approaches

Static Tools

Load a fixed set of tools from the tenant’s connections at the start of the session. Best when you know what the agent needs upfront. When to use:
  • The toolset is small and predictable
  • You want to leverage LLM context caching
  • Tools don’t change during the session
How it works:
  1. List the tenant’s connections.
  2. Get available actions for the relevant connections.
  3. Pass the actions as tools to your LLM.

Dynamic Tools

Let the agent discover and load tools on-demand during a conversation. Best for large tool catalogs or when tools depend on context. When to use:
  • Hundreds or thousands of possible tools
  • Tools depend on user intent or conversation context
  • Users may connect new apps mid-session
How it works: Give your agent two meta-tools:
  1. Search actions — find relevant tools by intent
  2. Run action — execute a discovered tool
The agent dynamically discovers what it can do instead of loading everything upfront.

End-to-End Example

Here’s a complete example showing a per-tenant AI agent using the Vercel AI SDK. Each tenant gets their own Membrane token, which scopes all operations to their connections.
This pattern works with any LLM framework (OpenAI SDK, LangChain, etc.) — see the agent-skills repository for framework-specific adapters.