Integrate Google Services with LlamaIndex
Integrate Google services like Search, Gmail, and Calendar with LlamaIndex.
Why it matters
Seamlessly connect your LlamaIndex applications to Google's powerful suite of services, including Search, Gmail, and Calendar, for enhanced data retrieval and automation.
Outcomes
What it gets done
Perform Google searches and retrieve results.
Read and create calendar events.
Read and create Gmail messages.
Enable custom search engines for targeted queries.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-tool-tools-google | bash Capabilities
What this skill does
Searches the web and retrieves relevant sources.
Pulls structured data fields from unstructured text.
Writes and executes SQL or NoSQL queries on databases.
Sends alerts or messages via email, Slack, or other channels.
Overview
LlamaIndex Tools Integration: Google
What it does
This toolset provides tools to interact with Google services, including Google Search, Gmail, and Google Calendar. It requires enabling specific Google Cloud services and providing API keys and OAuth credentials. The calendar tool has a known limitation regarding timezone inference for event creation.
How it connects
Use this toolset when you need to programmatically interact with Google Search, Gmail, or Google Calendar within your LlamaIndex applications. It is not suitable if you cannot provide the necessary authentication credentials or if manual OAuth approval per invocation is not feasible. Be aware of the calendar tool's timezone limitation when creating events.
Source README
LlamaIndex Tools Integration: Google
Provides a set of tools to interact with Google services.
- you need to enable each of the below services in your google cloud console, under a same API key for a service, in
order to use them.
Quick Start:
### pip install llama-index-tools-google
from llama_index.tools.google import GmailToolSpec
from llama_index.tools.google import GoogleCalendarToolSpec
from llama_index.tools.google import GoogleSearchToolSpec
custom search service
google_spec = GoogleSearchToolSpec(key="your-key", engine="your-engine")
keycollected from your service consoleenginewhich represents the search engine to use, you can create a custom search
engine here
calendar read, create
- requires OAuth 2.0 credentials, you can create them here
- store oAuth
credentials.jsonin the same directory as the runnable agent. - you will need to manually approve the Oath every time this tool is invoked
gmail read, create
- same as calendar
known defects
- the calendar tool create is not able to generate an event if the agent is not able to infer the timezome
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.