Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enabling Your First Library Agent

Enable the Translation Agent from the AI Agent Library, activate it, and verify the run with an API call and AI Logs.

This trail is for merchants and operators. You enable a predefined agent from the AI Agent Library, activate it, trigger it by API, and confirm the run in AI Logs.

This trail uses the Translation Agent as the worked example. It uses an API trigger, so you do not need Slack or Microsoft Teams. You can follow the same enable and activate steps for other library agents, though their triggers or communication tools may differ.

Outcome: An active Translation Agent in My agents that returns a translation response and appears in AI Logs.

Each step includes the Management Dashboard path to follow. Use the linked guides when you need more detail. Meet the checkpoint before you continue.

Prerequisites

Complete the Access preparations, then make sure you have the following:

  • Access to Management Dashboard → Agentic AI → AI Agents

  • A model for the agent – Emporix OpenAI for a first test, or your own provider API key stored in AI Tokens

  • An Emporix API key (Client ID and Secret) that can request a service access token with the ai.agentexecution_manage scope, which the agent chat endpoint requires

Emporix OpenAI needs no setup. You select the model when you configure the agent. For a first test, leave Required scopes empty on the agent. If you later restrict the agent to Employee or Integration callers, the token must also meet that restriction.

For details about Required scopes and caller restrictions, see Define activation rules.

Steps

1

Review the Translation Agent template

This step is read-only. You look at the template so you know what the agent expects, and you add the agent in the next step.

In the Management Dashboard, go to Agentic AI → AI Agents. Under Predefined Agents, open the Translation Agent template, read its description and default setup, and close it without changes.

For this trail, translate product name and description into German (de). The default agent user prompt already targets those fields and German. Still include the target language in the chat message so the run matches the template rules. You can change the target language or field set later.

The agent expects name and description as localization maps and returns the same maps with the German value added, for example:

  • Input: {"name": {"en": "Delight Coffee"}}

  • Output: {"name": {"en": "Delight Coffee", "de": "Delight Kaffee"}}

For more background on the template and prompt, see Translation Agent.

Checkpoint: You know which fields the agent translates and what its input and output look like.

2

Enable the agent from the library

Still on AI Agents, under Predefined Agents, select the Translation Agent template and choose Add agent. Set a name and description, then choose Save. The instance appears under My agents.

On My agents, open Configure for that instance. Copy the agent ID, check that the default prompt targets German name and description, and check the model on the Model tab (for a first test you can keep Emporix OpenAI). On the Trigger & Constraints tab, leave Required scopes empty for a first test. Save if you changed anything. Back on My agents, toggle the agent active.

For the generic library flow and screenshots, see Enabling a predefined agent from the library.

Checkpoint: The Translation Agent appears under My agents, is active, and you have copied its ID for the API call.

3

Trigger the agent by API

Request a service access token with your Emporix API key. Include ai.agentexecution_manage in the token scope. Empty Required scopes on the agent does not remove this endpoint requirement.

curl -X POST 'https://api.emporix.io/oauth/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'client_id={client_id}' \
  -d 'client_secret={client_secret}' \
  -d 'grant_type=client_credentials' \
  -d 'scope=ai.agentexecution_manage'

Copy the access_token value from the response. For more about the token request, see OAuth Service.

Then call Starting agent chat with that token, your tenant, and the agent ID you copied. The message states German as the target language and includes product name and description as localization maps:

curl -X POST 'https://api.emporix.io/ai-service/{tenant}/agentic/chat' \
  -H 'tenant: {tenant}' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -d '{
    "agentId": "{agentId}",
    "message": "Translate name and description to German. {\"name\":{\"en\":\"Delight Coffee\"},\"description\":{\"en\":\"Awaken your senses with our hand-selected Gourmet Coffee, crafted for true coffee lovers who crave depth, aroma, and sophistication in every sip.\"}}"
  }'

Replace {tenant}, {{OAUTH2_ACCESS_TOKEN}}, and {agentId} with your values. For other chat modes, such as streaming or async, see How to communicate with an agent.

Checkpoint: The response includes translated output for the fields you sent (for example German name and description), or a clear JSON error from the agent prompt rules if the input was invalid.

4

Confirm the run in AI Logs

In the Management Dashboard, go to Agentic AI → AI Logs, or open the agent-specific logs from AI Agents for your Translation Agent. Open the Requests tab, find the request for the agent ID you called, then open Log Details and review the message and response.

For more about log views and filters, see AI Logs.

Checkpoint: A request entry exists for the agent ID you called, and Log Details shows the translation request and response.

What to do next

This library-agent trail is complete on its own. Enable other templates from the AI Agent Library, for example:

To build an agent that is not based on a library template, continue with Creating Your First Custom Agent.

For partner tooling outside the tenant, see Agentic Engineering.

Troubleshooting

Problem
What to do

Agent is saved but does not respond

Confirm the agent is active on My agents. Check the model and token settings under Configure.

API call fails with authorization errors

Confirm the service access token includes ai.agentexecution_manage. If the agent has Required scopes, confirm the token also meets that restriction. See Define activation rules.

Response is an agent JSON error

Check that the request data includes valid name and description localization maps and that the user prompt states a target language.

Nothing appears in AI Logs

Confirm you called the correct agent ID, then refresh Requests or open logs from that agent on AI Agents.

Last updated

Was this helpful?