Getting Started Example

This quickstart guide walks you through a simple setup to create a digital employee in just a few minutes.

Prerequisites

To follow this example, you will need to:

  • Installarrow-up-right the digital-employee-core package

  • If you are planning to deploy and/or the digital employee in a remote AIP server, set the AIP_API_URL and AIP_API_KEY environment variables in your terminal or in a .env file

circle-info

You should provide AIP_API_URL and AIP_API_KEY, because the digital employee depends on these two environment variables when you are using a remote AIP server.

To get the values for these environment variables, please ask your team which AIP server has been deployed, and then obtain the AIP key. For example, in CATAPA, we use AIP_API_URL=https://aip-dev.catapa.com/ as our AIP development environment.

You can set the environment variables in your terminal by using:

export AIP_API_URL=<AIP_API_URL>
export AIP_API_KEY=<AIP_API_KEY>
  • If you are planning to run the digital employee locally, set the OPENAI_API_KEY environment variables in your terminal or in a .env file

circle-info

Similar to AIP_API_URL and AIP_API_KEY, you can set OPENAI_API_KEY environment variable by using:

export OPENAI_API_KEY=<OPENAI_API_KEY>

Build Digital Employee - A Basic Example

Start by creating a simple digital employee that can interact with Gmail. This agent will use OpenAI GPT-5.1 as its language model, an MCP setup, and a simple prompt to guide its behavior.

Import the Package

Initialize the Digital Employee

Run the Digital Employee Locally

Run the Digital Employee in Remote AIP Server

circle-info

Before running the sample code, replace the following placeholders:

  1. Replace [your-email] with your email address.

  2. Replace [gl-connectors-x-api-key] with x-api-key from GL Connectors. See below for one way to do it.

  3. (Optional) Replace GOOGLE_MAIL_MCP_URL if you are using a different GL Connectors server instance.

chevron-right🔑 Get GL Connectors x-api-keyhashtag
  1. In the Credentials section, expand the x-api-key panel and click Copy combined value button. Paste this value to replace [gl-connectors-x-api-key] .

  1. If your Gmail account has not been integrated yet, continue with the steps below.

  2. Under Available Modules section, find the Google_mail integration and click Add New Integration button.

  1. An authorization URL will appear. Click or copy the URL, then authenticate using your Gmail account.

  1. Below is an example of a successfully integrated Gmail account.

Last updated