Skip to main content

Check out Port for yourselfΒ 

Interact with AI agents

Closed Beta Feature

This feature is currently in closed beta with limited availability. Access is provided on an application basis.

To request access, please reach out to us by filling this form.

Getting started​

Once you've built your AI agents, it's time to interact with them. Port provides several ways to communicate with your AI agents.

Interaction options​

You have two main approaches when interacting with AI agents in Port:

Choose a specific agent when you have a structured scenario, such as triggering an agent from an automation or using an AI widget. This approach works best when you know exactly which agent has the expertise needed for your task, or when the interaction method requires you to select a specific agent.

Interaction methods​

You can add AI agents directly to your dashboards as interactive widgets, providing easy access to their capabilities right where you need them.

Follow these steps to add an AI agent widget:

  1. Go to a dashboard.
  2. Click on + Widget.
  3. Select the AI Agent.
  4. Choose the agent and position it in the widget grid.

The widget provides a chat interface where you can ask questions and receive responses from the specific agent you configured without leaving your dashboard.

Discovering Available Agents​

AI Agents as Entities

AI agents are standard Port entities belonging to the _ai_agent blueprint. This means you can query, manage, and interact with them using the same API endpoints and methods you use for any other entity in your software catalog.

You can discover available AI agents in your Port environment in a couple of ways:

  1. AI Agents Catalog Page: Navigate to the AI Agents catalog page in Port. This page lists all the agents that have been created in your organization. For more details on creating agents, refer to the Build an AI agent guide.
  2. Via API: Programmatically retrieve a list of all AI agents using the Port API. AI agents are entities of the _ai_agent blueprint. You can use the Get all entities of a blueprint API endpoint to fetch them, specifying _ai_agent as the blueprint identifier.
cURL Example
curl -L 'https://api.port.io/v1/blueprints/_ai_agent/entities' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API_TOKEN>'

AI interaction details​

Every AI agent interaction creates an entity in Port, allowing you to track and analyze the interaction. This information helps you understand how the agent processed your request and identify opportunities for improvement.

Plan​

The plan shows how the agent decided to tackle your request and the steps it intended to take. This provides insight into the agent's reasoning process.

Tools used​

This section displays the actual steps the agent took and the APIs it used to complete your request. It can be particularly helpful for debugging when answers don't meet expectations, such as when an agent:

  • Used an incorrect field name.
  • Chose an inappropriate property.
  • Made other logical errors.

Tokens​

Each interaction records both input and output tokens, helping you understand your LLM usage. This information can be valuable for:

  • Identifying which agents consume more of your token allocation.
  • Optimizing prompts for efficiency.
  • Managing costs effectively.

Data handling​

We store data from your interactions with AI agents for up to 30 days. We use this data to ensure agents function correctly and to identify and prevent problematic or inappropriate AI behavior. We limit this data storage strictly to these purposes. You can contact us to opt-out of this data storage.

Limits​

Port applies limits to AI agent interactions to ensure fair usage across all customers:

  • Query limit: ~40 queries per hour.
  • Token usage limit: 800,000 tokens per hour.
Usage limits

Usage limits may change without prior notice. Once a limit is reached, you will need to wait until it resets.
If you attempt to interact with an agent after reaching a limit, you will receive an error message indicating that the limit has been exceeded. The query limit is estimated and depends on the actual token usage.

Common errors​

Here are some common errors you might encounter when working with AI agents and how to resolve them:

Missing Blueprints Error (Click to expand)

Error message:
{"missingBlueprints":["{{blueprint name}}","{{blueprint name}}"]}

What it means:
This error occurs when an AI agent tries to execute a self-service action that requires selecting entities from specific blueprints, but the agent doesn't have access to those blueprints.

How to fix:
Add the missing blueprints listed in the error message to the agent's configuration.

Security considerations​

AI agent interactions in Port are designed with security and privacy as a priority.

For more information on security and data handling, see our AI agents overview.

Troubleshooting & FAQ​

The agent is taking long to respond (Click to expand)

Depending on the agent definition and task, as well as load on the system, it may take a few seconds for the agent to respond. Response times between 20 to 40 seconds are acceptable and expected.

If responses consistently take longer than this, consider:

  • Checking the details of the invocation.
  • Reaching out to our Support if you feel something is not right.
How can I interact with the agent? (Click to expand)

Currently, you can interact with Port AI agents through:

  • The AI agent widget in the dashboards.
  • Slack integration.
  • API integration.

We're working on adding direct interaction through the Port UI in the future.

What can I ask the agent? (Click to expand)

Each agent has optional conversation starters to help you understand what it can help with. The questions you can ask depend on which agents were built in your organization.

For information on building agents with specific capabilities, see our Build an AI agent guide.

What happens if there is no agent that can answer my question? (Click to expand)

If no agent in your organization has the knowledge or capabilities to answer your question, you'll receive a response mentioning that the agent can't assist you with your query.

The agent is getting it wrong and has incorrect answers (Click to expand)

AI agents can make mistakes. If you're receiving incorrect answers:

  1. Analyze the tools and plan the agent used (visible in the invocation details).
  2. Consider improving the agent's prompt to better guide its responses.
  3. Try rephrasing your question or breaking it into smaller, more specific queries.
  4. Reach out to our support for additional assistance if problems persist.

Remember that AI agents are constantly learning and improving, but they're not infallible.

My agent isn't responding in Slack (Click to expand)

Ensure that:

  • The Port Slack app is properly installed in your workspace.
  • The app has been invited to the channel where you're mentioning it.
  • You're correctly mentioning the app (@Port).
  • You've completed the authentication flow with the app.
  • You haven't exceeded your daily usage limits.
How can I provide feedback on agent responses? (Click to expand)

The AI invocation entity contains the feedback property where you can mark is as Negative or Positive. We're working on adding a more convenient way to rate conversation from Slack and from the UI.

How is my data with AI agents handled? (Click to expand)

We store data from your interactions with AI agents for up to 30 days. We use this data to ensure agents function correctly and to identify and prevent problematic or inappropriate AI behavior. We limit this data storage strictly to these purposes. You can contact us to opt-out of this data storage.