text: Skip to main contentğŸ¦œï¸�ğŸ”— LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON AgentMultion ToolkitOffice365 ToolkitOpenAPI agentsNatural Language APIsPandas Dataframe AgentPlayWright Browser ToolkitPowerBI Dataset AgentPython AgentSpark Dataframe AgentSpark SQL AgentSQL Database AgentVectorstore AgentXorbits AgentToolsVector storesGrouped by providerIntegrationsAgent toolkitsGmail ToolkitOn this pageGmail ToolkitThis notebook walks through connecting a LangChain email to the Gmail API.To use this toolkit, you will need to set up your credentials explained in the Gmail API docs. Once you've downloaded the credentials.json file, you can start using the Gmail API. Once this is done, we'll install the required libraries.pip install --upgrade google-api-python-client > /dev/nullpip install --upgrade google-auth-oauthlib > /dev/nullpip install --upgrade google-auth-httplib2 > /dev/nullpip install beautifulsoup4 > /dev/null # This is optional but is useful for parsing HTML messagesCreate the Toolkitâ€‹By default the toolkit reads the local credentials.json file. You can also manually provide a Credentials object.from langchain.agents.agent_toolkits import GmailToolkittoolkit = GmailToolkit()Customizing Authenticationâ€‹Behind the scenes, a googleapi resource is created using the following methods.