AgentX and OpenRouter Integration

Demonstration of how apps are integrated in WEXTL workflow builder[4]

Keep AgentX and OpenRouter matched by integrating their events and actions. When ai events happen in AgentX, update the OpenRouter automatically - without any line of code in visual workflow builder.

  • 3-day trial
  • Cancel anytime
  • Up to 10 minutes quick set up
  • GDPR
  • Data Encryption
  • 2FA
  • Local Data Region

Learn about AgentX and OpenRouter

Detailed info you need to know about AgentX and OpenRouter integrations in WEXTL. Explore which modules apps support and how you connect them.

  • AgentX

    • AI
    • 7 searches
    • 12 actions

    Hosted AI agents for starting conversations, sending messages and reading traces.[5]

  • OpenRouter

    • AI
    • 3 triggers
    • 70 searches
    • 65 actions

    A unified API for hundreds of AI models from many providers.[6]

How to connect AgentX to OpenRouter

Set up your AgentX and OpenRouter integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.

How does the integration between AgentX and OpenRouter work in WEXTL?

WEXTL exposes actions and triggers for AgentX and OpenRouter that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.

OpenRouter triggersAgentX actions

OpenRouter modules

  • Activate a Private Endpoint Starts routing traffic to a draft private endpoint that has already passed Validate a Private Endpoint. Returns its ID, Status and Provider Name (management key only).
  • Add Keys to a Guardrail Assigns up to 500 API Keys to a guardrail. A key holds at most one guardrail, so assigning replaces any guardrail the key already has. Returns the Assigned Count (management key only).
  • Add Members to a Guardrail Assigns up to 500 organization Members to a guardrail. The output reports the Assigned Count (management key only).
  • Add Workspace Members Puts up to 100 organization Members into a workspace. Output has the Members Added total along with their Memberships (management key only).
  • Copy Secrets to an Intern Copies 1 to 100 workspace Secrets onto an intern in your workspace. A secret with the same name on the intern is replaced. Returns the Copied Secrets (Intern API access only).
  • Create a Batch Submits many requests of one Endpoint type to a Model so they run together in the background. Use Completion Window to set how long the provider has to finish.
  • Create a BYOK Key Adds a Provider Key from your own provider account to a workspace. Use Allowed Models to restrict which models may use it and Fallback Key to try it only after the other keys fail (management key only).
  • Create a Completion Asks a Model to reply to a chat conversation. Use Fallback Models to name backups, Tools to let the model request function calls, and Response Format for a structured reply.
  • Create a Guardrail Creates a guardrail from a Name that limits which models and providers may be used and how much may be spent. Fill Spending Limit (USD), Allowed Providers or Ignored Models to set those limits (management key only).
  • Create a Message Gets a reply from a Model for Messages written for the Anthropic API. Use System Prompt for instructions, Max Tokens to cap the reply length, and Thinking to let the model reason first.
  • Create a Preset from a Chat Request Saves a chat request as a preset under a Preset Slug, or as a new version when the slug already exists. OpenRouter does not store the Messages from the request.
  • Create a Preset from a Message Request Keeps a message request as a preset keyed by Preset Slug, where an unused slug starts a preset and a used one adds a version. Use System Prompt to store instructions with it.
  • Create a Preset from a Response Request Turns a response request into a preset keyed by Preset Slug. Use Instructions and Reasoning Effort to keep those settings. The Input text is not stored.
  • Create a Private Endpoint Creates a draft private endpoint that serves a Model through a Provider, using your Upstream Model ID. Use Base URL for the address of your deployment and Idempotency Key to make a retry safe (management key only).
  • Create a Reranking Ranks the Documents against a Query using a rerank Model. Use Top N to return only the best matches.
  • Create a Response Generates a model response from text Input and a Model. Use Instructions for system-level guidance, Reasoning Effort to set how much the model thinks, and Max Output Tokens to cap the length.
  • Create a SCIM Group Mapping Links a SCIM Group synced from your identity provider to a Workspace and gives its members a Role of Admin or Member (management key only).
  • Create a SCIM Sync Job Starts a directory sync and reports its Status, then totals for Synced Groups and Deleted Groups (management key only).
  • Create a System One Request Evaluates the State content against your Questions with a System One Model. Output includes the Answers.
  • Create a Transcription Turns an audio file or link into text with a speech-to-text Model. Fill Audio File or Audio URL, choose a Language, and enable Label Speakers to tag each word with its speaker.
  • Create a Transcription from Audio Link or Data Converts an audio link or base64 Audio Data into text. Add Key Terms to listen for, Timestamp Detail for the Verbose format, and an Audio Format when sending raw data.
  • Create a Video Starts a video generation job with a video Model and returns its Job ID. Use Prompt to describe the video, Reference Images to guide it and Previous Job ID to edit or extend a finished job.
  • Create a Workspace Creates a workspace from a Name and a Slug. Use Default Text Model and Default Image Model to preset which models its requests use (management key only).
  • Create an API Key Creates an API key from a Name and reveals the key value one time only. Use Spending Limit (USD) with Limit Reset to cap spend, and Expires At to give the key an end date (management key only).
  • Create an External User Registers a User ID of 1 to 512 characters so usage can be tracked against that end user. Output has Active, Created At and Updated At (management key only).
  • Create an Image Generates images from a Prompt with an image Model. Use Reference Images to guide the result and Max Response Size (bytes) to raise the 10 MB default.
  • Create an Observability Destination Adds a trace destination from a Name, a Type such as Langfuse or Datadog, and a Config JSON object. Use Sampling Rate to forward only a share of requests and Privacy Mode to leave prompts out (management key only).
  • Create Embeddings Turns the Input texts into embedding vectors with an embeddings Model, giving one vector per text in the same order. Use Dimensions to set the vector length and Encoding Format to choose the representation.
  • Create Generation Feedback Reports what went wrong with a past generation, using its Generation ID and a Category such as Latency or Billing. Add a Comment of up to 1,000 characters for detail (management key only).
  • Create Speech Turns Text into spoken audio with a speech Model, giving back the audio as a file. Use Instructions for tone or pacing, Speed for the playback rate and Audio Format to change the encoding.
  • Deactivate an External User Deactivates a registered end-user ID that was added for tracking (management key only).
  • Delete a Batch Deletes a batch that has completed, failed, expired or been cancelled.
  • Delete a BYOK Key Removes a provider key you brought to OpenRouter and marks it as deleted (management key only).
  • Delete a File Deletes an uploaded file, which cannot be undone. Use Provider to delete it from a provider account with your own key, and Workspace ID for a file in another workspace.
  • Delete a Guardrail Removes a guardrail that limits models, providers or spend (management key only).
  • Delete a Private Endpoint Deletes a private endpoint. Turn on Only If Still a Draft to refuse deleting one that was ever activated (management key only).
  • Delete a SCIM Group Mapping Removes the link between a directory group and a workspace. Choose Keep Members to say whether members the mapping added stay as manually managed members (management key only).
  • Delete a Vault Secret Deletes a secret stored for your workspace (Intern API access only).
  • Delete a Workspace Deletes a workspace. Set Confirm Default Workspace Deletion to Yes when the workspace is the default one (management key only).
  • Delete a Workspace Budget Removes the spending budget of one Interval from a workspace, whether Daily, Weekly, Monthly or Lifetime (management key only).
  • Delete an API Key Deletes an API key of your OpenRouter workspace (management key only).
  • Delete an Intern Secret Removes one secret held for an intern in your workspace (Intern API access only).
  • Delete an Observability Destination Removes a place OpenRouter sends traces to (management key only).
  • Disable a Private Endpoint Pauses an active private endpoint, and it can be enabled again later. Output has its Status (management key only).
  • Download a Container File Reads the content of a container file. Output has the File Data, File Name, Content Type and Size (bytes).
  • Download a File Fetches the content of a file that OpenRouter created itself. Output has the File Data, File Name and Content Type.
  • Download a Video Saves a completed video job as a file, using the Job ID that Create a Video returned. Use Output Index to choose which output of the job to fetch.
  • Enable a Private Endpoint Starts sending traffic again to a disabled private endpoint and returns its Status (management key only).
  • Get a Batch Loads a batch with its Status, adding the results after it has finished. Use Max Response Size (bytes) to raise the 10 MB default.
  • Get a BYOK Key Returns the settings of one provider key you brought, such as Disabled and Fallback Key (management key only).

AgentX modules

  • Create a Conversation Opens a new conversation on one of your AgentX agents. Set Type to Chat, Search or Ecommerce to decide how the agent will handle it.
  • Create Speech Turns Text into spoken audio through the AgentX voice API. Set Language, Gender, Speed or Accent to shape the voice, and turn on Robot for a mechanical tone.
  • Create Speech Stream Synthesizes Text as a streamed audio response from the voice API, so playback can begin before the whole clip exists. Use Language, Gender, Speed or Accent to adjust the voice.
  • Delete a Conversation Context Clears the memory context stored for a conversation held with an agent in AgentX.
  • Get a Conversation Reads one conversation of an agent together with its messages. Create a Conversation or List Conversations gives you the conversation to read.
  • Get a Message Trace Looks up the prompt trace linked to a message by its Message ID. Pass the result to Get a Trace for the full detail.
  • Get a Trace Looks up the detailed prompt trace for a Trace ID, the record of how an agent built its answer. Get a Message Trace finds the ID for a given message.
  • Get an Agent Fetches the details and current configuration of a single agent in your AgentX account.
  • Get Your Profile Reads the profile of the user who owns the API key this credential uses, which shows which AgentX account a credential belongs to.
  • List Agents Finds every agent your API key is allowed to use in AgentX, each coming back as a separate result.
  • List Conversations Collects the conversations held with one agent, ready to read or continue in later steps.
  • Make an API Call Makes an authorized free-form request to the AgentX REST API with your saved credential.
  • Send a Message Posts a Message into an existing conversation and returns the Status and Response of the agent. Use Agent Mode to switch between Chat and Search, and Context to set how much history counts, with 0 meaning as much as possible.
  • Send a Message and Wait Sends a Message and holds until the agent finishes the whole reply, buffered up to 10 MiB or 180 seconds. Use Context to cap how much earlier conversation counts.
  • Send a Message and Wait for JSON Sends a Message, optionally with Attachments or Audio, and waits until the agent completes a JSON reply. Set Context to restrict the history the agent draws on.
  • Send a Message with an Attachment Uploads a File into a conversation for the agent to read. Add a Message to go along with the file, and use Context to control how much earlier chat is considered.
  • Send Speech Recognition Submits an audio Sample (Base64) for transcription under a Call ID and Seq ID. AgentX posts the recognized text to your Callback URL, and you can leave Language empty for auto detection.
  • Update a Conversation Context Seeds a conversation with earlier user and assistant Messages as memory, without triggering a chat turn.
  • Update a Message Vote Sets the Vote on a message, found by its Message ID. Use Agent and Trace ID to tie the vote to the exchange it rates.

Explore alternative integrations

There are other apps[9] supported by WEXTL that can be paired with AgentX and OpenRouter integrations. Pick any from the list below if the current combination isn't the one you need.

Automate AgentX and OpenRouter on WEXTL®

Claim your 3-day trial to build AgentX with OpenRouter integration and access every WEXTL® feature.

Cancel anytime.

Frequently asked questions

Common questions about connecting AgentX and OpenRouter.

How do I connect AgentX and OpenRouter?

Connect your AgentX and OpenRouter accounts once, pick a trigger in one app and an action in the other, then map the fields so data flows automatically between them.[3]

What can I automate between AgentX and OpenRouter?

Example: when the "Watch Batch Events" trigger in OpenRouter fires, WEXTL can "Create a Conversation" in AgentX. AgentX has 19 actions (including Create a Conversation, Create Speech, and Create Speech Stream). OpenRouter has 135 actions (including Activate a Private Endpoint, Add Keys to a Guardrail, and Add Members to a Guardrail). Add filters and transforms between steps when you need them.[1]

Can AgentX trigger actions in OpenRouter, and OpenRouter in AgentX?

Yes. The integration works in both directions. Use the triggers of each app to start a workflow and the actions of the other app to update it.[2]

Do I need to write code to integrate AgentX and OpenRouter?

No. AgentX-to-OpenRouter automations are built visually on the canvas. You can optionally add custom JavaScript with Functions when you need advanced logic.[4]

Does AgentX integrate with OpenRouter in real time?

Yes. Trigger-based automations start the moment AgentX (or OpenRouter) fires a new event. Webhook-backed apps run within seconds, and polling-only apps re-check on a schedule you control.[7]

How long does it take to set up a AgentX + OpenRouter integration?

A first automation typically takes 5–10 minutes: connect the credential of each app once, drop a trigger + action onto the canvas, map the fields, and turn the workflow on.

Do I need a paid plan to connect AgentX with OpenRouter?

You can build your AgentX + OpenRouter automation on a 3-day trial with every feature unlocked. Cancel anytime.[8]

References

List of sources used to gather information about the AgentX and OpenRouter integration.

  1. AgentX and OpenRouter integration source code, module specs and credentials implementation.
  2. Our AgentX and OpenRouter integration documentation, structured input and output parameters, scopes, and authentication methods.
  3. Official vendor API documentation for AgentX and OpenRouter, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
  4. WEXTL® visual workflow builder, anonymized data from our technical support team.
  5. AgentX integration information
  6. OpenRouter integration information
  7. WEXTL® Scheduling
  8. WEXTL® Pricing and Trial
  9. WEXTL® Apps Library

How we write our apps documentation

Explore how WEXTL® crafted AgentX and OpenRouter integration page documentation. Used sources, the role of AI, and how the team validates the result.

Explore AgentX and OpenRouter, or get started