PersonalizerAI app requires a service account key to access Retail AI API on your Google Cloud Project. This guide walks you through creating a service account in your Google Cloud Project and getting a service account key file to upload to PersonalizerAI app.
A service account as a JSON file is required to authenticate PersonalizerAI to use Retail AI. To create a service account, follow the steps below:
1. Log in to your Google Cloud Console and click on the hamburger icon at the top left corner.
2. Hover on IAM & Admin > then click on Service Accounts.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2FIAM_9594a85ebe%2FIAM_9594a85ebe.png&w=3840&q=75)
3. Click on + CREATE SERVICE ACCOUNT.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_accounts_931f7c14dc%2Fservice_accounts_931f7c14dc.png&w=3840&q=75)
4. Provide Service account details including the account Service account name, Service account ID, and Service account description. Click CREATE AND CONTINUE.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fcreate_service_account_29d8efe222%2Fcreate_service_account_29d8efe222.png&w=3840&q=75)
5. In the Grant this service account access to project step, grant these roles:
- Retail Admin
- Retail Service Agent
- Service Account Token Creator
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_access_01d4375d58%2Fservice_account_access_01d4375d58.png&w=3840&q=75)
6. You can leave the Grant users access to this service account step as is. And click on Done.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_roles_c1b0345018%2Fservice_account_roles_c1b0345018.png&w=3840&q=75)
7. After that you will be redirected back to the Service accounts page. Here you need to click on the 3 vertical dots in the Actions columns and select Manage keys.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_keys_26b35178cd%2Fservice_account_keys_26b35178cd.png&w=3840&q=75)
8. Now on the Keys page click on ADD KEY, then Create new key.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_create_key_d0fcd9849a%2Fservice_account_create_key_d0fcd9849a.png&w=3840&q=75)
9. A modal will open where you need to ensure that Key type is JSON. Click on CREATE.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_key_json_e711f21664%2Fservice_account_key_json_e711f21664.png&w=3840&q=75)
10. The service account key will be downloaded as a JSON file on your computer. You can then upload this file in the PersonalizerAI app.
![](/_next/image?url=https%3A%2F%2Fcdn.infilimits.com%2Fservice_account_download_07a31ffd63%2Fservice_account_download_07a31ffd63.png&w=3840&q=75)
Incase you are stuck at any step, please contact us at support@personalizerai.com