examples/zapier-llm-example/README.md
Hello there! 👋 This example demonstrates how to use LangChain Go to create an AI agent that can interact with Zapier's Natural Language Actions (NLA) API. It's a fantastic way to combine the power of language models with the automation capabilities of Zapier!
This example showcases the following:
Setting up an OpenAI Language Model: It initializes an OpenAI LLM, which will be used as the brain of our agent.
Integrating Zapier NLA Tools: The code fetches all available Zapier NLA tools using your Zapier API key.
Creating an AI Agent: It sets up an agent using the "Zero Shot React Description" approach, which allows the agent to decide how to use tools based on their descriptions.
Executing a Task: The agent is given a specific task: "Get the last email from [email protected]". It will use the Zapier tools to accomplish this task.
Displaying Results: Finally, it prints out the agent's response to the given task.
ZAPIER_NLA_API_KEY environment variable.This example is a great starting point for building more complex AI-powered automation workflows that leverage both language models and Zapier's vast ecosystem of app integrations.
Happy coding! 🚀