[Solved β ] Tools are not working
Hi, I am trying to add a tool that can create an event in my calendar. I am Authenticated as well; However, when i am asking the chatbot for creating an event in my calender, all i can see is the infinite loading and the event is not being created in my calendar either.
It is confirmed that the tool call is being made.

8 Replies
wise-whiteOPβ’3mo ago
Here is my code for handling the api route
fair-roseβ’3mo ago
thanks for sharing the code - looking into this.
wise-whiteOPβ’3mo ago
Did you go through the code and figure out what's the problem π ?
harsh-harlequinβ’3mo ago
Hi @Azaan ! Can you share the value of
userId
you are passing into the function?
Also can you console result
inside the if block and also the error
before returning it?
It might help me to debug the code better. Thank you!fair-roseβ’3mo ago
Hey @Azaan - Can you share the above to get this sorted?
wise-whiteOPβ’3mo ago
@Karthikeya @plxity i apologize for late replying.
userId is basically a clerkId like this - user_2p9svDxxTR5w5IgkUHZh8hn2Vuf
and no error is being logged in the console
Any update brother?
extended-salmonβ’2mo ago
Is the issue still there??
wise-whiteOPβ’2mo ago
I'm no longer concerned about it, you can consider it closed ππ»
Thanks all