WAppAI / assistant

A WhatsApp chatbot that leverages Bing AI's and others LLMs conversational capabilities.
MIT License
107 stars 37 forks source link

Can't get Google Calendar to work #311

Open luandro opened 1 month ago

luandro commented 1 month ago

I've set all the env vars for the Google Calendar integration:

ENABLE_GOOGLE_CALENDAR="true"
GOOGLE_CALENDAR_CLIENT_EMAIL
GOOGLE_CALENDAR_PRIVATE_KEY
GOOGLE_CALENDAR_CALENDAR_ID

But when prompted it says it has no access:

User: Which events do i have on my calendar on 14/10

Assistant: Infelizmente, não tenho acesso direto ao seu calendário. Mas se você me contar quais eventos você tem no dia 14/10, posso te ajudar a organizar ou lembrar de algo específico! 😊
Luisotee commented 1 month ago

Likely a problem with the setup, in the .env.example there is a github link with a tutorial on how to setup properly.

I would guess mess you cut the "-----BEGIN PRIVATE KEY-----..." part, but you can ask the bot itself for the error it's getting and it might give you a usefull information

Luisotee commented 3 weeks ago

The reason why it didnt work is likely due to no OpenAI api key with credits being provided. Currently the calendar tool is hardcoded to accept only the OpenAI api key and to use GPT 4.

I will leave this open until I put in the work to make it work with any model or provider.