All the selected capabilities are listed as tabs on the Add APIs page. Add at least one API for each capability.
Before you begin
Note:
- The APIs use Now Assist skills for code generation and for writing scripts. By default, these skills use Azure Open AI LLM (Large Language Model). If necessary, you can change the LLM by accessing the Now Assist
Skill Kit application. The following LLMs are available: Azure Open AI, Now LLM.
- Now Assist for Spoke Generation is used to generate flow action which uses Now LLM.
Role required: sn_si_int_kit.integration_creator
Procedure
-
Select the capability for which you want to add APIs.
-
To add API, select Add new API.
-
Select API type.
| Option | Description |
|---|
| Choose new API |
- Select the API name.
The following details of the selected APIs are displayed:API documentation, API response structure,
API sample response.
- Select Create API endpoint details.
A flow designer action is generated.
- In the Flow designer action section, select the
icon to review the Flow Designer action generated by Now Assist. If necessary, you can update the values.
- Select one of the API classification.
- Pre processing API: Refers to the initial API calls required by an integration before making the primary API call to obtain the final results. These preliminary calls are
essential for tasks such as retrieving necessary identifiers (such as host ID), fetching relevant information (such as OS name), or establishing a connection (such as starting a session with the
host). By completing these preparatory steps, the preprocessing API enables the integration to successfully execute the main API call and retrieve the desired outcome.
- Results API: Delivers the final data, while the preprocessing APIs provide the necessary dependencies.
- Select Generate Invocation Script to generate the invocation script.
You can modify the script if necessary. Note: Verify that the modified script is validated.
- Select Generate Parsing Script to generate the parsing script.
You can modify the script if necessary. Note:
- Verify that the modified script is validated.
- If the generated parsing script isn’t correct and truncated, increase output token limit for the Code generation skill from Now Assist skill kit.
- To add multiple APIs, select the + icon and repeat from step 2.
|
| Choose from existing API |
- In Choose API, select the API.
The API details are listed: API documentation, API response structure, API sample
response.
- Select API classification.
- Pre processing API: The initial API calls required by an integration before making the primary API call to obtain the final results. These preliminary calls are essential
for tasks such as retrieving necessary identifiers (such as host ID), fetching relevant information (such as OS name), or establishing a connection (such as starting a session with the host). By
completing these preparatory steps, the preprocessing API enables the integration to successfully execute the main API call and retrieve the desired outcome.
- Results API: Delivers the final data, while the preprocessing APIs provide the necessary dependencies.
- Select Generate Invocation Script to generate the invocation script.
You can modify the script if necessary. Note: Verify that the modified script is validated.
- Select Generate Parsing Script to generate the parsing script.
You can modify the script if necessary.
- Verify that the modified script is validated.
- If the generated parsing script isn’t correct and is truncated, increase output token limit for the Code generation skill from Now Assist skill kit.
- To add multiple APIs, select the + icon and repeat from step 2.
|
-
To add multiple APIs, select the + icon and repeat from step 2.
-
Select Mark as complete.
At least one API must be configured as a Results API for each capability.
All the APIs are listed for the selected capability.
-
Select Next to review and publish the application.