Test the Multifunction Calling using Slack AI Agent recipe
You can test the Multifunction Calling using Slack AI Agent recipe with the function declaration value that is set as default in the Set Flow Configurations step of the Slack AI Agent process.
The default value applies to and can execute the Generate Image with NVIDIA NIM and Simple RAG Consumption with NVIDIA NIM recipes that are imported from the Recipes tab. Ensure that the parent processes in these recipes contain the user that has access to the process service URL at run time in the Allowed Users field.
For example, in the Slack AI Agent process, you can enter one of the following prompts for the correct function call for these recipes:
•Create an image (image description)
•Find a document with printer instruction
The function name must start with a letter or an underscore, and can contain alphanumeric characters, underscores (_), periods (.), and hyphens (-). For more information, see Google Vertex AI documentation.
The structure of the Function_Declaration is important for further execution of the request to the Application Integration process. If the process involves an AI agent handling Slack webhooks, this must be indicated in the name field within the function name. To configure your Function_Declaration in the process, you must specify it in the JSON format as shown in the following examples:
Example 1:
<tools> <functionDeclarations> <name>Create_Image_with_Slack</name> <description>The function recognizes user input for generate image from text.</description> <parameters> <type>object</type> <properties> <Process_URL> <type>string</type> <description>Fixed URL to execute process</description> <enum><Service_URL_of_the_Application_Integration_Process></enum> </Process_URL> <Payload> <type>array</type> <description>Structured payload for processes</description> <items> <description>Fields in payload for processes</description> <type>object</type> <properties> <event> <type>object</type> <properties> <text> <type>string</type> <description>The message text from the event</description> <enum>{$temp.Message}</enum> </text> <channel> <type>string</type> <description>The Slack channel ID</description> <enum>{$temp.Channel_ID}</enum> </channel> </properties> <required>text</required> <required>channel</required> </event> </properties> <required>event</required> </items> </Payload> </properties> <required>Process_URL</required> <required>Payload</required> </parameters> </functionDeclarations> </tools>
Example 2:
<tools> <functionDeclarations> <name>Find_documents_in_vector_database_with_Slack</name> <description>The function recognizes user input for generate image from text.</description> <parameters> <type>object</type> <properties> <Process_URL> <type>string</type> <description>Fixed URL to execute process</description> <enum><Service_URL_of_the_Application_Integration_Process></enum> </Process_URL> <Payload> <type>array</type> <description>Structured payload for processes</description> <items> <description>Fields in payload for processes</description> <type>object</type> <properties> <event> <type>object</type> <properties> <text> <type>string</type> <description>The message text from the event</description> <enum>{$temp.Message}</enum> </text> <channel> <type>string</type> <description>The Slack channel ID</description> <enum>{$temp.Channel_ID}</enum> </channel> </properties> <required>text</required> <required>channel</required> </event> </properties> <required>event</required> </items> </Payload> </properties> <required>Process_URL</required> <required>Payload</required> </parameters> </functionDeclarations> </tools>