# 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
Navigate to Account settings > Copilot usage.
Ensure that Copilot's terms of service comply with your company's policies.
Click Enable Copilot.
Enable Copilot
Enable Copilot
IMPACT ON WORKSPACE ENVIRONMENTS
Enabling Copilot affects all environments within your workspace. Ensure you consider this impact before activation.
# AHQ Workspaces
Click Workspace admin > Settings > AI features.
Ensure that Copilot's terms of service comply with your company's policies.
Click Enable Copilot.
Enable 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.
Click Tools > Connector SDK.
Create a new custom connector or select an existing custom connector.
- If creating a new connector, provide your API documentation URL.
- If modifying an existing connector,change the authentication logic or generate an action.
The Copilot appears in its own dedicated tab, next to the Debug and Console tabs.
Copilot 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 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.
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.
Choose from the available authentication options
Copy and paste the code Copilot generated into the connector code interface on the left.
Remember to replace the existing connection: { }
.
Replace sample code
Switch to the Test code tab to test the generated connection. You must supply the relevant credentials to authenticate your connection.
Authenticate 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.
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
Select Add an action to prompt Copilot to generate an action.
Name the action. The action's name must indicate to Copilot what the objective of your action is, for example , Create Invoice.
- 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.
Add an action Review the code Copilot generates for the action. If it's acceptable, copy and paste it into the code editor.
Review the code. If it's acceptable, copy and paste it into the code editor.
Switch to the Test code tab to test the generated action. You must have a working connection to test.
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 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