Integration with Google Cloud through Service Account

Hi, I am using an HTTP request to get a response from a gemini model on google cloud services. The issue is authorization. I need to use a service account that is already set up in google cloud, but I am not sure how to set it up in Studio. I tried using Google Cloud Scope and feeding it the service account key, and putting the HTTP request within it, but the authorization does not seem to carry forward.
Any ideas?

P.S. The endpoint works as it was tested and worked on Google Cloud SDK.

Hi @Leonel_Bonnici

Cause: HTTP Request doesn’t inherit Google Cloud Scope authentication.
Solution: Generate access token from service account JSON and add it as Bearer token in HTTP Request headers.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath

Hey @prashant1603765,

Thanks for the reply. Can you point me to how to generate the access token? I already have the service account JSON.

Thanks

@Leonel_Bonnici

better is created your own integration connector for consumign gemini model..

then you can consume it as activity as well

and check here on how to use and create bearer

cheers

Hi @Leonel_Bonnici