Skip to main content
Version: 8.3

Development specifics for Sub-agents in the Creatio.ai Outlook and Teams add-in

Level: beginner

You can streamline your communication workflow by using Creatio Sub-agents directly in Microsoft Outlook and Microsoft Teams. This lets you automate and simplify tasks like summarizing emails or creating CRM records without leaving your inbox or meeting. You can develop your own Sub-agents for the Creatio.ai add-in in the same way you would for Creatio.ai, but you need to account for a few key differences.

Available context from Outlook​

The Creatio.ai add-in enables you to leverage data from both Creatio and Microsoft 365 for AI processing. Whenever you use a Sub-agent within Outlook or Teams, the add-in automatically gathers contextual information from the currently selected email or meeting and passes it to Creatio.ai together with your request.

Outlook object

Data available for Sub-agent

Email

Subject: email title

Body: full message text

From: sender's name and email

To, CC, BCC: all recipient names and emails

Thread ID: unique conversation ID

Calendar meeting

Subject: meeting title

Body: meeting description or agenda

Organizer: who created the meeting, name and email

Participants: invited attendees, (both required and optional), names and emails

Microsoft Teams meeting

Subject: meeting title

Organizer: who created the meeting, name and email

Participants: meeting attendees, names and emails

Microsoft Teams personal app

User: the current user's name and email

The personal app is not linked to an email or a meeting, so no email or meeting data is available

Important

Some fields, like BCC or Optional participants, are optional. When a field is empty, instruct the AI to ignore it or handle it with conditional logic.

For example, you can create the Sub-agent that classifies an email by its content and assign one of four labels: "Urgent," "Action Required," "For Your Information," or "Marketing":

###User's Goal
Classify an email by its content and assign one of four labels: "Urgent," "Action Required," "For Your Information," or "Marketing."

### Steps to Achieve Goal
1. Analyze the subject and body of the provided email.
2. Determine the main purpose or nature of the email.
3. Select one of the four predefined labels that best describes the email's content.

### Expected Result
The LLM is expected to provide one of the four predefined labels. The result must be a simple output containing only the label itself, without any additional explanations.

---

## General Rules
1. If the email contains an explicit deadline, critical information, or requires an immediate reaction, assign the "Urgent" label.
2. If the email contains a request to complete a task, a question requiring a response, or another action from the user, assign the "Action Required" label.
3. If the email is informative and does not require a response or action (e.g., a newsletter, general information), assign the "For Your Information" label.
4. If the email is an advertisement, a promotional offer, or a commercial proposal, assign the "Marketing" label.

## General Restrictions
1. Do not assign more than one label to an email.
2. Do not generate any text in the response other than the label itself.

## Requirements for Output
1. The response must contain only one of the following strings: "Urgent," "Action Required," "For Your Information," "Marketing."
2. The output must be plain text, not JSON or any other format.

## Process Flow
1. Use the current page's context (email subject and body) for analysis.
2. Based on the analysis, determine the email's main purpose and select the most appropriate label.
3. Return the selected label as plain text.

This skill does not require any actions, but you can additionally set up actions as needed, such as changing the email status in Creatio.

Add quick launch button to Creatio.ai add-in​

You can add a quick launch button for the Sub-agent to the Creatio.ai add-in chat in Outlook and Teams.

Quick launch button in the Creatio.ai Outlook add-in chat
Quick launch button in the Creatio.ai Outlook add-in chat
  1. Click btn_system_designer.png to open the System Designer.

  2. Go to the System setup block → Lookups.

  3. Open the Creatio.ai skill in page lookup.

  4. Click New.

  5. Fill out the parameters as follows:

    Parameter

    Parameter value

    Sub-agent code

    Code of the Sub-agent specified on the Sub-agent page.

    Page name

    "outlook_email" for chat that opens in emails in Outlook

    "outlook_event" for chat that opens in meetings in Outlook

    "teams_meeting" for chat that opens in meetings in Teams (Creatio 8.3.1 and later)

    "teams_outlook_personal" for chat that opens in the Creatio.ai personal app in Teams, outside meetings (Creatio 8.3.1 and later)

  6. Click btn_confirm.png.

As a result, when a user opens Creatio.ai in the email, meeting, or personal app you specified, they will see a quick launch button for the Sub-agent in the Creatio.ai chat. If you need to add more Sub-agents, perform the setup in a similar way.


See also​

Creatio.ai

Creatio.ai add-in overview

Set up Creatio.ai add-in for Microsoft Outlook and Microsoft Teams

Creatio.ai (developer documentation)