跳到正文
原文
LlamaIndex:产品、工程与评测·· 3 小时前精选AI 评分65

LlamaIndex 数据智能体接入 Zapier NLA,5 行代码调用 5,000+ 应用

Data Agents + Zapier NLA

AI 导读

LlamaIndex 与 Zapier NLA 团队联合发布集成,LlamaIndex 数据智能体现在可通过 Zapier NLA 访问 5,000+ 第三方应用和 30,000+ 动作。只需 5 行代码:导入 ZapierToolSpec 并用 API key 创建 OpenAIAgent,即可让智能体执行如总结未读邮件并发送到 Slack 等任务。

推荐理由

原文给出 5 行代码接入 Zapier 5,000+ 应用和 30,000+ 动作的具体用法,读者可直接复用到自己的数据智能体工作流。

正文 · 原文

Joint blog by LlamaIndex team & Zapier NLA team

Wouldn’t it be great to have a personal assistant that can access your data and perform tasks for you?

Explore our free and paid plans today.

Introducing LlamaIndex data agents, now more powerful with Zapier NLA. Within 5 lines of code, you can access the 5,000+ third party apps and over 30,000 actions on Zapier.

from llama_hub.tools.zapier.base import ZapierToolSpec
from llama_index.agent import OpenAIAgent

zapier_spec = ZapierToolSpec(api_key="sk-ak-your-key")
agent = OpenAIAgent.from_tools(zapier_spec.to_tool_list(), verbose=True)

agent.chat('Can you summarize the unread emails and send it to me on Slack?')

来源:LlamaIndex:产品、工程与评测 · llamaindex.ai