How to get a Google Gemini API key
Create a Gemini API key in Google AI Studio, connect it on the Developer page of Workflow Suite and pick a default model to write functions with AI.
Workflow Suite can write and change the code of your functions with AI. It uses your own key from an AI provider. This page shows how to create a Google Gemini API key, where to paste it in Workflow Suite and how to pick a default model.
Create the key at Google
- Open Google AI Studio and sign in with your Google account: aistudio.google.com.
- Open Get API key. Direct link: aistudio.google.com/apikey.
- Select Create API key and choose or create a Google Cloud project.
- Copy the key. It starts with
AIza. - For more than the limits of the free tier, turn on billing for that project in Google AI Studio. Generation is then billed to your Google account.
Paste the key into Workflow Suite
- In your Shopify admin, open Workflow Suite and select Developer in the app menu.
- Open the tab Connections. Under Write and change functions with AI there is one card per provider.
- In the Google Gemini card, paste the key into API key.
- Select Save key.
The card then shows Key connected and the model it uses.
Pick a default model
Once the key is saved, the card has a Default model list. This model is preselected when you write a function with AI. You can pick another model each time.
- Workflow Suite starts with Gemini 3.8 Flash when your key offers it.
- The list is Google's own list for your key, with models such as Gemini 4 Carbon, Gemini 4 Argon and Gemini 3.5 Flash-Lite. It can show more models than these.
- An older model you already saved keeps working as long as Google offers it, and the card names the newer model with a button to switch.
Write a function with AI
- Open Functions in the app menu and open a function.
- Select Write with AI above the code.
- Pick the Model, describe what should change and select Generate. With more than one provider connected, pick the Provider first.
The new code is loaded into the editor. Nothing is saved until you save, so review and test it first.
On a new, empty function, Create with AI drafts the code, sample variables and the permissions it needs from your description.
Related
- Run code and functions - what functions are and how a workflow runs them.
- Secrets - keys and passwords for your own steps and code.
- Build workflows with an AI assistant over MCP - a different feature: an AI assistant that builds whole workflows over MCP.
