Skip to main content
Question

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


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

Did this topic help you find an answer to your question?
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

Troy Tessalone
Forum|alt.badge.img+14

@Reid Any input?


  • Author
  • Beginner
  • 3 replies
  • November 9, 2023

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


  • Author
  • Beginner
  • 3 replies
  • November 9, 2023

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

 


  • Author
  • Beginner
  • 3 replies
  • November 12, 2023

someone who can help me?