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:
Install the
digital-employee-corepackageIf you are planning to deploy and/or the digital employee in a remote AIP server, set the
AIP_API_URLandAIP_API_KEYenvironment variables in your terminal or in a.envfile
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_KEYenvironment variables in your terminal or in a.envfile
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
Before running the sample code, replace the following placeholders:
Replace
[your-email]with your email address.Replace
[gl-connectors-x-api-key]with x-api-key from GL Connectors. See below for one way to do it.(Optional) Replace
GOOGLE_MAIL_MCP_URLif you are using a different GL Connectors server instance.
🔑 Get GL Connectors x-api-key
Open https://api.bosa.id/console, then sign in.
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].

If your Gmail account has not been integrated yet, continue with the steps below.
Under Available Modules section, find the Google_mail integration and click Add New Integration button.

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

Below is an example of a successfully integrated Gmail account.

Last updated