In your Next Matter portal, go to Automations library, click Connect in the Gemini app tile, and enter the Google Gemini API key to connect. You can create the key in your Google Cloud Console.
Click Workflows > + Create new… > Create a new workflow and give your workflow a name. If you have a workflow ready, click … > Edit workflow.
Click + Add step and select Integrations > Gemini.
Click the step and click Configure integration.
Select Generate text using Gemini AI in Gemini operations.
Enter the prompt in which you write what you want the AI to do. For example: Summarize the following customer feedback.
Select the AI model:
Gemini 1.5 Flash: Faster, good for simple tasks
Gemini 1.5 Pro: More powerful, better for complex analysis
Select the output type (select Text for simple responses and Specific JSON schema for structured data).
If you select Specific JSON schema, specify the schema in the Output structure field. For example, you can enter {"summary":"string"}.
Add data reference or a link to text files (in TXT, CSV, PDF, or DOCX format) that the AI should analyze as part of the prompt.
Add the variables you need to reuse later.
By default, we add the message history as a variable in case you want to use it in another no-code step. The message history contains the response to the prompt, and if context files have been linked - the file names and any metadata they contain.