This project showcases how you can create a simple agent with Xircuits that has access to your Google Calendar and can find public transport routes for you.
- Python: Ensure you have Python 3.11+ installed.
- Service Account: Create a Google service account for accessing Google Calendar.
- Google Maps API Key: Obtain a Google Maps API key for accessing public transit data.
- OpenAI Key: Obtain an OpenAI key
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
xircuits start
- Go to the Google Cloud Console.
- Create a new project or select an existing project.
- Navigate to APIs & Services > Credentials.
- Click on Create credentials > Service account.
- Follow the prompts to create a service account.
- Once created, click on the service account to edit it.
- Go to the Keys tab and add a new key. Choose JSON format.
- Download the
service_account.json
file and place it in the root directory of this project.
- Open Google Calendar in your browser.
- Select the calendar you want the agent to access.
- Click on Settings and sharing.
- Under Share with specific people, add the service account email (found in your
service_account.json
file). - Grant appropriate permissions (at least "Make changes to events").
- Go to the Google Cloud Console.
- Enable the Google Maps JavaScript API and Google Places API for your project.
- Navigate to APIs & Services > Credentials.
- Click on Create credentials > API key.
- Copy the generated API key into the Literal Secret Component that is connected to the public transit components.
- Go to your OpenAI account and get an API Key
- Copy the key into the Literal Secret Component that is connected to OpenAIAuthorize.
At Xpress AI we are building a platform that allows anyone to create and host their agents.
Join us and many other builders on xpress.ai.