Use AI to Edit an Integration

You can use AI to edit an integration that was created manually or using AI. You can also incrementally edit the integration flow when creating it using AI. On the integration canvas, you can specify the purpose of the integration using natural language in the AI chat box.

Note:

  • This feature is available only in projects.
  • AI features are available in select regions. See AI Feature Availability.
  1. Decide where to start:
    • Edit an existing integration:
      1. In the navigation pane, click Projects.
      2. Select the project name.
      3. Click Integration Integrations icon.
      4. In the Integrations section, hover over the integration to edit.
      5. Click Actions Actions icon, then select Edit.
    • Perform incremental updates when creating a new integration:
      1. Create an integration. On the integration canvas, an AI chat box is available. Specify what the integration needs to do in the AI chat box.
      2. Click Send message Send message icon.
      3. The AI creates a skeleton integration.
  2. To edit the integration, specify the updates using natural language in the AI chat box clearly (with details such as node names, connection names, routes, and so on), and then click Send message Send message icon.

    Note:

    You should specify the node on which the edit operation needs to be performed clearly, otherwise the edit operation might not be performed correctly. You should also specify any conditions or routes clearly. Examples:
    • After node_name, edit_action_to_perform.

      Example: After receiving order from NetSuite, add a call to Salesforce using connection connection_name to get order line items. Iterate over the line items and update the line item in NetSuite.

    • Before node_name, edit_action_to_perform.

      Example: Before receiving an order from NetSuite, add a call to check the existence of the customer in NetSuite using connection connection_name. If the customer does not exist, create the customer record using connection connection_name, otherwise log the customer details.

    • Inside route_name or for_each_name or while_name, edit_action_to_perform.

      Example: Inside the success route (the route when customer exists), add a call to get orders of the customer, and log the order details.

    Repeat this step if you need to make further updates to the integration flow.

    Each time you update the integration using AI, review and save the integration.

  3. In the Create/updated integration flow option, perform one of the following steps:
    • Click Accept AI generated actions Accept AI generated actions icon to accept the integration flow created by AI.

      The integration flow created by AI is retained and displayed on the canvas. You can modify this skeleton integration to configure the integration as needed. If needed, you can edit the connections and the triggers/invokes. You can activate the integration after you’ve configured it.

    • Click Remove all AI generated actions Remove all AI generated actions icon to remove the integration flow created by AI.

      The integration flow created by AI is removed and the AI chat box is displayed again, where you can modify your request or specify a new request indicating what the integration needs to do.

Note:

The AI might automatically configure the trigger/invoke based on the natural language text you entered in the chat box. The automatic configuration of trigger/invoke by AI is designed to deliver the best possible results. It is attempted automatically, however successful configuration cannot be guaranteed in every case. For more information about automatic configuration of trigger/invoke, see Use AI to Create an Integration.

Example

Let's use AI to perform incremental updates when creating a new integration. Note that you can also edit an existing integration. In this particular example, we are creating an integration and performing edits.

  1. Create an application integration.
  2. On the integration canvas, an AI chat box is available. Enter the following in the AI chat box and click Send message Send message icon.

    Create an integration which gets orders from Salesforce and creates orders in NetSuite.


    The integration canvas shows the text entered by the user in the AI chat box and the Send message icon.

  3. Review and save the integration before proceeding to modify the integration flow using AI.
  4. Enter the following in the AI chat box to edit the integration flow and click Send message Send message icon.

    When creation of order is successful in NetSuite, create the customer record in NetSuite and log a message. Otherwise, send a notification to the customer.


    The integration canvas shows the current integration flow. It also shows the text entered by the user in the AI chat box to update this current integration flow.

  5. Review and save the integration before proceeding to modify the integration flow using AI.
  6. Enter the following in the AI chat box to edit the integration flow and click Send message Send message icon.

    When creation of order fails, before notification, add a call to ERP to get the line items for the order as part of the failure route. Loop over the order line items and log the line items.


    The integration canvas shows the current integration flow. It also shows the text entered by the user in the AI chat box to update this current integration flow.

  7. Review and save the integration before proceeding to modify the integration flow using AI.
  8. Enter the following in the AI chat box to edit the integration flow and click Send message Send message icon.

    Delete the failure notification. Add an invoke to update the line items after logging order line items.


    The integration canvas shows the current integration flow. It also shows the text entered by the user in the AI chat box to update this current integration flow.

  9. Review and save the integration before proceeding to modify the integration flow using AI.
  10. Enter the following in the AI chat box to edit the integration flow and click Send message Send message icon.

    Move the update of line items before logging of order line items.


    The integration canvas shows the current integration flow. It also shows the text entered by the user in the AI chat box to update this current integration flow.

  11. Review and save the integration before proceeding to modify the integration flow using AI.
  12. Enter the following in the AI chat box to edit the integration flow and click Send message Send message icon.

    Replace logging of line items with note activity.


    The integration canvas shows the current integration flow. It also shows the text entered by the user in the AI chat box to update this current integration flow.

  13. Review and save the integration.


    The integration canvas shows the current integration flow. It also shows the Create/updated integration flow option that allows you to accept or reject the integration flow.

  14. In the Create/updated integration flow option, click Accept AI generated actions Accept AI generated actions icon to accept the integration flow created by AI.

    The integration flow created by AI is retained and displayed on the canvas.


    The integration canvas shows the integration flow that you accepted.

    You can modify this skeleton integration further as needed. You can activate the integration after you’ve configured it.