To configure and publish the processes, perform the following steps:
1To publish the Salesforce Executor process, click Actions in the row that contains the process and select Publish.
2Open the Prompt Engineering process.
3On the Temp Fields tab of the Start step, the Model_LLM field is set to gemini-1.5 pro by default. You can optionally edit the model version. For information about changing the model version, see the Gemini documentation.
4 Save and publish the process.
5Open the GeminiAI Agent for Salesforce process.
6Optionally, you can change the tracing level from Verbose to None on the Advanced tab.
7Optionally, in the Prepare First Prompt To LLM step, enter the prompt instructions in the Assignments field by updating the Prompt_Configuration and Prompt_Request fields using the Expression Editor, as shown in the following sample code:
For Prompt_Configuration: <generationConfig> <candidateCount>1</candidateCount> <maxOutputTokens>5000</maxOutputTokens> <temperature>0.5</temperature> <topP>0.5</topP> <topK>1</topK> </generationConfig>
For the Prompt_Configuration field, enter values for the following properties:
Property
Description
stopSequences
Contains sequences of characters or strings that stop the model's output. This property controls where the model must end its response.
candidateCount
Specifies the number of response candidates that the model must generate. For example, if the value is set to 1, the model generates one response. If set to a higher number, the model generates that many alternative responses for the same input.
maxOutputTokens
Defines the maximum number of tokens that the model can generate in its response. Setting a limit ensures that the response is concise and fits within the desired length constraints.
temperature
Controls the randomness of the model's output. A lower value close to 0 makes the output more deterministic, while a higher value close to 1 increases randomness and creativity. For example, if temperature is set to 0.5, the model balances between deterministic and creative outputs.
topP
Determines the cumulative probability threshold for token selection. The model considers the smallest set of tokens whose cumulative probability meets or exceeds topP. For example, if topP is set to 0.1, the model considers only the top 10% most probable tokens at each step.
topK
Limits the number of the highest-probability tokens to consider during response generation. For example, if topK is set to 2, the model considers only the top 2 tokens at each step, controlling output diversity and quality.
8 Save and publish the process.
Alternatively, you can also publish the GeminiAI Agent for Salesforce process from the assets page. To publish the process, click Actions in the row that contains the process and select Publish. The subprocesses will be published automatically. You can modify the process as mentioned in step 7 before publishing the process if needed.