Skill

Integrate Google Services with LlamaIndex

Integrate Google services like Search, Gmail, and Calendar with LlamaIndex.

Works with google

72
Spark score
out of 100
Updated 3 months ago
Version 1.0.0

Add to Favorites

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

01

Perform Google searches and retrieve results.

02

Read and create calendar events.

03

Read and create Gmail messages.

04

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

Search the web

Searches the web and retrieves relevant sources.

Extract

Pulls structured data fields from unstructured text.

Query a database

Writes and executes SQL or NoSQL queries on databases.

Notify

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")
  • key collected from your service console
  • engine which 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 oAuthcredentials.json in 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.