wise-white
wise-whiteβ€’3mo ago

[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.
No description
8 Replies
wise-white
wise-whiteOPβ€’3mo ago
Here is my code for handling the api route
fair-rose
fair-roseβ€’3mo ago
thanks for sharing the code - looking into this.
wise-white
wise-whiteOPβ€’3mo ago
Did you go through the code and figure out what's the problem πŸ™‚ ?
harsh-harlequin
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
fair-roseβ€’3mo ago
Hey @Azaan - Can you share the above to get this sorted?
wise-white
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
extended-salmonβ€’2mo ago
Is the issue still there??
wise-white
wise-whiteOPβ€’2mo ago
I'm no longer concerned about it, you can consider it closed πŸ‘πŸ» Thanks all

Did you find this page helpful?