Question

Zapier NLA Google Calendar API in LangChain python agent doesn't work

  • 9 November 2023
  • 4 replies
  • 198 views

Hello, I am writing because I am trying to use Zapier NLA to connect to google calendar as tools in a Langchain agent:

        zapier = ZapierNLAWrapper()
toolkit = ZapierToolkit.from_zapier_nla_wrapper(zapier)
tools = toolkit.tools + [
ScrapingAutosOpcionAutos(), # custom tool
DetailsAuto(), # custom tool
ScrapingImagesAutos(), # custom tool
]
TEMPLATE = """
......
"""
agent = initialize_agent(
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
tools=tools,
llm=self.llm,
memory=self.conversational_memory,
agent_kwargs={
'prefix': TEMPLATE,
},
)
return agent.run(questions)

but when I request to generate an event in the calendar I get the following error:

ZapierNLARunAction._run() got an unexpected keyword argument 'Describe_Event'.

or:

ZapierNLARunAction._run() got an unexpected keyword argument 'Calendar'

please, someone could help me


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

@Reid Any input?

yes...I get the error with any type of input.

I solved it with a missing configuration in Zapier's AI Action, but now I get the following error:

 

Need to determine which default deprecation schedule to use. within ?? minor releases

 

someone who can help me?