
Simon Suo • 2023-07-25
数据代理 + Zapier NLA
LlamaIndex 团队与 Zapier NLA 团队联合博客
如果有一个个人助手可以访问您的数据并为您执行任务,那岂不是很棒?
隆重推出 LlamaIndex 数据代理,现已通过 Zapier NLA 变得更加强大。只需 5 行代码,您就可以访问 Zapier 上的 5000 多个第三方应用和 30000 多个操作。
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?')