Creating a connector by using generative AI (experimental feature)
Instead of creating connector objects and actions from scratch, you can use generative AI powered by IBM watsonx to create different objects and associated actions for your connector. When you provide the URL to the API documentation page of the connector that you are going to work with inside Connector Development Kit, the generative AI crawls through the page and scrapes information from the URL, thereby generating paths and methods. As generate connector using AI is an experimental feature, there is a possibility that it might not work as intended for some connectors.
To create a connector with the help of generative AI, complete the following steps:
-
Log in to your Connector Development Kit instance.
-
On the Connector Development Kit home page, click Create a connector.
The Create a connector page is displayed.
-
From the 'Import or discover' view, select Generate connector using AI, then click Next.
-
From the 'Add connector metadata' view:
- Enter a name for the application and optionally add a description.
- In the Category field, select a category for your connector. Categories are used to filter connectors when they are published to IBM Automation Explorer.
- In the image section, click the Edit icon to add an image for your connector or use the default app image that is provided by the Connector Development Kit.
- Specify a version for your connector. For more information, see Connector versioning.
-
Click Next.
-
In the 'Discover operations' view, provide one or more API documentation URLs linked to the operation you want to create actions with (for example, https://developers.example.com/application/api/v1/users).
Tip: Use Add URL + to add multiple API documentation URLs. You can add a total of five API documentation URLs at a time. -
Click the Discover operations button to detect operations from the specified API documentation URLs with the help of generative AI.
-
Click Next.
In the 'Select operations' view, a list of HTTP methods along with their respective paths is displayed.
-
Choose the operations that you want to use as actions for your connector, then click Next.
Note: When you are generating the connector document from the selected operations, if the generative AI encounters errors in the application's API documentation, an extra view called 'Fix OpenAPI specification errors' is displayed. In this view, you can make the necessary manual corrections to the errors to continue with the process. If no errors are found, you are redirected directly to the 'Generated Actions' view.In the 'Generated actions' view, you can see a list of available objects and associated actions that are created from the selected operations by using generative AI.
-
Click Create.
The Actions tab for the newly created connector containing the generated objects and actions is displayed.
-
If necessary, in the Actions tab, add more details to further customize your actions. For more information, see Configuring actions.
Note: It is recommended to independently verify each object and action that is generated by AI. -
If necessary, add polled events for your connector by using the Events tab. For more information, see Configuring polled events.
-
In the Connection properties tab, complete the form to configure the connection properties for your connector. For more information about how to configure connection properties, see Configuring connections.
-
In the Schema tab, create the schema and configure parameters. For more information, see Configuring schemas.
-
Test the new actions and polled events that you created by using the Test actions and Test events tab. For more information, see Testing a connector.
Next
Check the Actions, Events, Connection properties, and Schema tabs. If you have no changes to make and the connector is marked as Completed, you can download the connector for testing it in App Connect or publish it to IBM Automation Explorer. For more information, see the following topics: