Zapier Natural Language Actions gives you access to the 5k+ apps, 20k+ actions on Zapier’s platform through a natural language API interface. NLA supports apps likeNLA offers both API Key and OAuth for signing NLA API requests.Gmail,Salesforce,Trello,Slack,Asana,HubSpot,Google Sheets,Microsoft Teams, and thousands more apps: zapier.com/appsZapier NLAhandles ALL the underlying API auth and translation from natural language —> underlying API call —> return simplified output for LLMs. The key idea is you, or your users, expose a set of actions via an oauth-like setup window, which you can then query and execute via a REST API.
- Server-side (API Key): for quickly getting started, testing, and production scenarios where LangChain will only use actions exposed in the developer’s Zapier account (and will use the developer’s connected accounts on Zapier.com)
- User-facing (Oauth): for production scenarios where you are deploying an end-user facing application and LangChain needs access to end-user’s exposed actions and connected accounts on Zapier.com
SimpleSequentialChain, then an Agent.
In code, below:
Example with Agent
Zapier tools can be used with an agent. See the example below.Example with SimpleSequentialChain
If you need more explicit control, use a chain, like below.Example Using OAuth Access Token
The below snippet shows how to initialize the wrapper with a procured OAuth access token. Note the argument being passed in as opposed to setting an environment variable. Review the authentication docs for full user-facing oauth developer support. The developer is tasked with handling the OAuth handshaking to procure and refresh the access token.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.