Skip to main content
Agents are the core of intelligent automation within Devic.
They combine reasoning, tools, and knowledge to autonomously execute tasks until they reach an objective.
In this guide, you’ll learn how to create your first agent and configure the elements that make it work: the model (LLM), the prompt, the tools, and RAG (knowledge).

What Is an Agent in Devic?

An agent is an intelligent entity capable of making decisions on its own.
Unlike traditional workflows —where actions are represented with boxes and arrows— in Devic the agent decides which steps to take and when to stop.
Each agent is built by combining:
  • A language model (LLM), which reasons and generates actions.
  • A prompt, which defines its purpose and rules.
  • A set of tools, which allow it to act on data or systems.
  • And optionally, a RAG space, where it stores reference information.

Step 1: Create a New Agent

In Devic’s sidebar, open the Agents section and select New Agent.
Start by assigning a name and a description that clearly define its function.
FieldDescription
NameMain identifier of the agent. Use something descriptive, such as Order Manager or Ticket Analyst.
DescriptionBrief explanation of the agent’s purpose or context. Visible to other users in the project.
Example:
“Agent specialized in processing orders received by email and registering them in the sales database.”
Example agent

Step 2: Define the Prompt

The prompt is the core of the agent.
It describes how the agent should behave, what objective it must fulfill, and under what conditions it must operate.
A good prompt should include:
  • The agent’s role.
  • The objective or expected outcome.
  • The rules or limits it must respect.
  • The success criteria.
Example prompt: You are an agent specialized in processing orders. You will receive emails from customers with purchase requests. Your task is to identify the customer, product, and requested quantity, and update the order database. Example prompt

Step 3: Choose the Model (LLM)

The model is the reasoning engine of the agent.
Devic allows choosing between different providers and models, depending on your needs for performance, cost, or privacy.

Available Providers

  • OpenAI — GPT-4 and GPT-4o models.
  • DeepSeek — Fast, cost-optimized models.
  • Anthropic — Claude models, excellent at reasoning tasks.
  • XAi — Grok models, general-purpose.
  • Kimi / K2 — Alternative models compatible with Devic.

On-Premise Models

You can also deploy your own on-premise models, which allows:
  • Full control over data handling.
  • Meeting privacy or compliance requirements.
  • Avoiding dependencies on external services.
Model and provider selection

Step 4: Add Tools

Tools are the agent’s execution capabilities.
They allow it to interact with emails, databases, documents, or external services.
You can add tools from Tools → Add tools.
ToolDescription
Read EmailsReads emails and extracts their content.
Send EmailSends messages or automated notifications.
DatabasesAllows creating, querying, or updating records.
OCRExtracts text from documents or images.
Spreadsheet ToolsReads data from spreadsheets or CSV files.
Example of configured tools Tip:
Configure only the tools you need.
For example, a support agent may need Read Emails, Databases, and Send Email, but not OCR.

Step 5: Add Knowledge (RAG)

RAG (Retrieval Augmented Generation) serves as the agent’s memory.
It allows the agent to consult documents or external files to obtain contextual information during execution.
You can upload files in formats such as:
  • .pdf
  • .docx
  • .txt
  • .csv
Example use cases:
  • A legal agent consults contracts or laws uploaded as PDFs.
  • A sales agent looks up information in catalogs or price lists.
  • A technical agent accesses manuals or internal guides.
RAG or Knowledge in an agent

Step 6: Save and Execute

Once you’ve configured the name, prompt, model, tools, and RAG, click Save changes.
The agent will be ready to run manually, via webhooks, or scheduled periodically.
You can test it directly from the interface using the test button. Save and execute

test

Component Summary

ElementPurpose
Name & DescriptionIdentify the agent and explain its role.
PromptDefines its behavior and rules.
Model (LLM)Acts as the reasoning engine.
ToolsAllow executing actions and accessing services.
RAGExtends its knowledge with documents or external data.

Next Steps