slots not found GOOGLECALENDAR_FIND_FREE_SLOTS

from crewai import Agent, Task, Crew from langchain_openai import ChatOpenAI from composio_crewai import ComposioToolSet, Action, App composio_toolset = ComposioToolSet(api_key="API KEY") connected_account = composio_toolset.get_connected_account(id='ACCOUNT_ID') tools = composio_toolset.get_tools(actions=['GOOGLECALENDAR_FIND_FREE_SLOTS'],entity_id=connected_account.entityId ) Define agent crewai_agent = Agent( role="Sample Agent", goal="""You are an AI agent that is responsible for taking actions based on the tools you have""", backstory=( "You are AI agent that is responsible for taking actions based on the tools you have" ), verbose=True, tools=tools, llm=ChatOpenAI(), ) task = Task( description="Find the best 3 slots for me to book a meeting of one hour with during office hours i.e 9 to 5", agent=crewai_agent, expected_output="time slots" ) my_crew = Crew(agents=[crewai_agent], tasks=[task]) result = my_crew.kickoff() print(result) ALSO HOW CAN I GET TIMEZONE OF MY CALENDAR, I WANT IT TO UPDATE DYNAMICALLY
0 Replies
No replies yetBe the first to reply to this messageJoin