# Workato Connector Copilot

HOW TO GET ACCESS

This feature is in private preview and is only available to customers who use the US Data Center. You can opt-in by agreeing to our AI feature addendum (opens new window). Contact your Customer Success representative to apply for access.

The Workato Connector Copilot uses Large Language Models (LLMs) to augment and accelerate your connector-building experience. This enables you to develop connectors quickly, whether you're a seasoned SDK developer or new to the SDK with some familiarity with coding and web services. You can use the Workato Connector Copilot to learn more about the Workato SDK, build authentication logic, or build actions that are specific to your requirements.

POWERED BY AI

Copilot is powered by AI, where mistakes and nonexistent patterns or objects known as hallucinations are possible. We recommend that you test and verify AI-generated code before releasing the connector to your workspace members.

Remember that all conversations with the Workato Connector Copilot are stored so we can learn and improve.


# Enable Copilot in your workspace

To enable Copilot in your workspace, you must meet the following requirements:

  • Your company has signed and agreed to Workato's AI feature addendum through DocuSign.
  • You are assigned the Admin (system role) in your workspace.

Workato does not offer granular permissions to the Connector Copilot feature. This means that users are given all-access or no access. If you enable the feature in your workspace, all users with the SDK access can use the feature.

# Standard Workspaces

1

Navigate to Account settings > Copilot usage.

2

Ensure that Copilot's terms of service comply with your company's policies.

3

Click Enable Copilot.

Enable Copilot in your account settingsEnable Copilot

Enable Copilot in your workspace settingsEnable Copilot

IMPACT ON WORKSPACE ENVIRONMENTS

Enabling Copilot affects all environments within your workspace. Ensure you consider this impact before activation.

# AHQ Workspaces

1

Click Workspace admin > Settings > AI features.

2

Ensure that Copilot's terms of service comply with your company's policies.

3

Click Enable Copilot.

Enable Copilot in your account settingsEnable Copilot

IMPACT ON AHQ WORKSPACE

Enabling Copilot in the parent AHQ workspace will automatically grant access to it across all associated child workspaces. Copilot usage can then be enabled or disabled independently in each workspace. It is disabled by default.

Enabling Copilot affects all environments in that workspace (and associated workspaces if enabled in parent workspace) such as Development, Test, and Production. Ensure you consider this impact before activation.

# How to use Connector Copilot

Ensure that the Connector Copilot is enabled on your workspace before using the following steps.

1

Click Tools > Connector SDK.

2

Create a new custom connector or select an existing custom connector.

The Copilot appears in its own dedicated tab, next to the Debug and Console tabs.

Copilot chat windowCopilot chat

# Provide your API documentation URL

Copilot prompts you for a link to the API documentation for the application for which you are creating the connector.

Provide API doc URLProvide your API documentation URL

Provide the documentation URL for the API reference. This helps Copilot understand if it has seen this set of API documentation before. A single API documentation URL is sufficient, but this API documentation must be publicly available.

After you provide the URL, Copilot checks if it has seen this API before.

  • Standard flow - If Copilot recognizes this API documentation, it can help you build this connector with its prior knowledge of the API.

  • Private documentation flow - If Copilot does not recognize this API documentation, it can help you build the connector but you must provide additional information about the API.

SUPPORTED APIS

Workato is continually expanding the number of APIs that Copilot supports. Talk to our support team to request additional APIs.

# Create authentication logic

Ensure that you have provided the API documentation URL before using the following steps.

1

Create a connection with your target application. There are two flows for this process:

  • Standard flow - Copilot provides authentication options based on the API documentation. In some cases, if no authentication options are found, Copilot suggests an authentication option. Note that you can provide Copilot with an authentication method if you plan to use an alternate authentication method that isn't listed.

  • Private documentation flow - Copilot provides a set of standard authentication options. Note that you can provide Copilot with an authentication method if you plan to use an alternate authentication method that isn't listed. Copilot prompts you to provide relevant API documentation to help it generate your authentication. You can provide a URL or copy and paste the documentation directly. When providing a URL, note that there is a 10,000 character limit. If the URL exceeds the character limit, you must provide the documentation using copy and paste.

GET BETTER RESULTS WITH COPY AND PASTE

When using copy and paste, you can specify parts of the documentation that are most relevant for Copilot to generate your authentication. For example, for OAuth2 connections, copy and pasting a guide from the API for the entire flow provides better results.

Authentication typesChoose from the available authentication options

2

Copy and paste the code Copilot generated into the connector code interface on the left.

Remember to replace the existing connection: { }.

Connector codeReplace sample code

3

Switch to the Test code tab to test the generated connection. You must supply the relevant credentials to authenticate your connection.

Authenticate your connectionsAuthenticate your connections

This is also a good opportunity to review the input fields and hints to ensure your connector provides proper guidance to your users.

4

Review the authentication logic in the Recent tests tab. You can also review the input and output of the authentication and any API calls that were made in the process.

# Generate an action

1

Select Add an action to prompt Copilot to generate an action.

2

Name the action. The action's name must indicate to Copilot what the objective of your action is, for example , Create Invoice.

3
  • Private documentation flow - Note that you can provide Copilot with an authentication method if you plan to use an alternate authentication method that isn't listed. Copilot prompts you to provide relevant API documentation to help it generate your authentication. You can provide a URL or copy and paste the documentation directly. When providing a URL, keep in mind that we have a limit of 10K characters. If the URL exceeds the character limit, you must provide the documentation using copy and paste.

GET BETTER RESULTS WITH COPY AND PASTE

When using copy and paste, you can be more specific about the documentation that is most relevant for Copilot to generate your authentication. For example, for your Create Invoice action, copy and pasting the documentation that includes the verb, endpoint, input and output parameters provides better results.

4

Add an actionAdd an action Review the code Copilot generates for the action. If it's acceptable, copy and paste it into the code editor.

5

Review the code. If it's acceptable, copy and paste it into the code editor.

6

Switch to the Test code tab to test the generated action. You must have a working connection to test.

7

Review the action logic in the Recent tests tab. You can also review the input and output of the action and any API calls that were made in the process.

# Fix errors and explain the SDK

After Copilot generates your connection or action code, it provides additional options. This allows you to request edits, fix API errors, or submit other queries.

Remember, being more specific about your requirements helps Copilot deliver better results.

Additional optionsAdditional options

These options include the following buttons:

  • Go to Debug

  • This button routes you to the debugger interface, where you can troubleshoot errors in your code.

  • Suggest edits

  • You can direct Copilot to make changes to your code.

  • Explain code

  • Prompt Copilot to explain your code to you. Copilot can explain how specific parts of your code function, help you troubleshoot errors detected in the Debug interface, and more.

  • Add an action

  • Allows you to direct Copilot to add another action when you're ready. Use this to get the best results for action generation.

# Clear the conversation

You can use the overflow panels in the top right corner of Copilot to clear your conversation.

Resetting Copilot is an important step in your connector development, as restarting provides better and more accurate answers. This action does not clear code you copied into your connector. Only chat history with Copilot is cleared.

# Reset the API documentation URL

At any point during your conversation, you can use the overflow panels in the top right corner of the Copilot chat to reset your API documentation URL.

Resetting the URL link brings you back to the state where the copilot prompts you to supply an API documentation URL for analysis. Like restarting the conversation, this action does not clear any code you copied into your connector.

# Limitations

Copilot cannot generate triggers.

Refer to building triggers documentation for guidance on creating a trigger for your connector.


Last updated: 2/7/2024, 4:53:47 PM