How do I get the Assistant to work in Google Chat as a chatbot?

Anyone have a good guide on how to get this to work? I have integrated chatgpt into my google workspace through google cloud but I can’t seem to get any of the features from the assistant to work. I want to be able to upload information about my company and get this thing to talk about us, provide staff information about policies, procedures, passwords to commonly used/low security locks, etc.

Any ideas?

1 Like

Welcome to the dev forum @zacharyw

Can you share a bit more about what exactly you’re doing that fails and how? Any errors you get, code that results in those errors will be useful.

2 Likes

I am mostly getting authorization errors. It deploys without telling me there is a problem and then in my logs it lists that there is a issue with token validation. This is all on google clouds end. I am new to all of this so I may not have the best idea on how to fix the issue.

If the error is being thrown from the OpenAI API side, I’d recommend checking to make sure that the correct API key is accessible to the code making the API call.

401 Unauthorized: Often signals that the credentials provided (like API keys or passwords) are incorrect.

Here’s the OpenAI guide for error handling:

An AuthenticationError indicates that your API key or token was invalid, expired, or revoked. This could be due to a typo, a formatting error, or a security breach.

If you encounter an AuthenticationError, please try the following steps:

Check your API key or token and make sure it is correct and active. You may need to generate a new key from the API Key dashboard, ensure there are no extra spaces or characters, or use a different key or token if you have multiple ones.
Ensure that you have followed the correct formatting.

However, if it is really an authorization error, it would mean that the user or system is authenticated but doesn’t have permission to access the resource or perform the action.

1 Like

Hey there, have you managed to get it work? I was thinking to do the same but have not started yet. Thought that I first make research on the how to.