- Source: where data is retrieved from
- Destination: where the Agent’s output is sent
Amazon S3
Amazon S3 can be configured as a source or destination for your Agents. To connect an Amazon S3 bucket to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- If an Amazon S3 integration already exists, click “Select” under “Amazon S3” and choose an account. Otherwise, click “Connect” and follow the configuration steps below:
- Enter the bucket name(s) you wish to connect
- Click “Continue”
- Copy the “Access Policy” JSON
- In your AWS console:
- Navigate to IAM Policies page
- Click “Create Policy” and select the “JSON” tab
- Paste the copied JSON
- Click through the “Next” buttons, adding the desired name, description, and tags
- Copy the “Trust Policy” JSON
- In your AWS console:
- Navigate to IAM Roles page
- Click “Create Role” and select “Custom trust policy”
- Paste the copied JSON
- Search for and select the access policy created in Step 2. Click “Next”
- Provide a role name and review the permissions, then click “Create role”
- Copy the role’s ARN for use in the next step
- In Kolena, click “Continue”
- Enter the ARN of the role created in Step 3
- Click “Finish”
- Select the bucket and folder you wish to connect to
Show AWS configuration steps
Show AWS configuration steps
Step 1: Specify Bucket(s)
Step 2: Create Access Policy
Step 3: Create Trust Policy
Step 4: Save Integration
Azure Blob Storage
Azure Blob Storage can be configured as a source or destination for your Agents. To connect Azure Blob Storage to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- If an Azure Blob Storage integration already exists, click “Select” under “Azure Blob Storage” and choose an account. Otherwise, click “Connect” and follow the configuration steps below:
- From the Azure portal, search for “App registrations” and navigate to this page
- Click “New Registration”
- Under “Supported account types”, select “Accounts in any organizational directory”
- Click “Register” to save the App registration
- Click on the App registration you have created
- Note the “Tenant ID” and “Application (client) ID”
- Click “Certificates & secrets”, then “New client secret”
- Click “Add” to save this secret and note the key value
- Navigate to the storage account containing your blobs
- Click “Access Control (IAM)“
- Click the “Role assignments” tab
- Click “Add”, then “Add role assignment”
- Search for and select “Storage Blob Delegator”
- Click on the “Members” tab, then click “Select members”
- Search for the App registration created in Step 1
- Click “Select”
- Click “Review + assign” to save
- From the storage account, click “Containers” under “Data Storage” and click on the container containing your blobs
- Click “Access Control (IAM)“
- Click the “Role assignments” tab
- Click “Add”, then “Add role assignment”
- Search for and select “Storage Blob Data Reader”
- Click on the “Members” tab, then click “Select members”
- Search for the App registration created in Step 1
- Click “Select”
- Click “Review + assign” to save
- (Optional) Repeat the steps above for any additional containers you wish to connect
- From the storage account, click “Containers” under “Data Storage” and click on the container containing your blobs
- Click “Access Control (IAM)“
- Click the “Role assignments” tab
- Click “Add”, then “Add role assignment”
- Search for and select “Storage Blob Data Contributor”
- Click on the “Members” tab, then click “Select members”
- Search for the App registration created in Step 1
- Click “Select”
- Click “Review + assign” to save
- (Optional) Repeat the steps above for any additional containers you wish to connect
- In Kolena, fill in the fields for the integration:
- Tenant ID: The Directory (tenant) ID of the App registration created in Step 1
- Client ID: The Application (client) ID of the App registration created in Step 1
- Client Secret: The secret key for the App registration created in Step 1
- Storage Account Name: The storage account in Azure you wish to connect to
- Storage Blob Endpoint URL: The endpoint for accessing the storage account. Can be found in “Endpoints” under “Settings” for your storage account. Usually of the form
https://<storage-account-name>.blob.core.windows.net - Container(s): The Azure storage container(s) to which you granted role permissions in Step 2
- Click “Finish”
- Select the container and folder you wish to connect to
Show Azure configuration steps
Show Azure configuration steps
Step 1: Create Azure App Registration for Kolena
Step 2: Assign Roles to App Registration
Assign Storage Blob Delegator Role
Assign Storage Blob Data Reader Role
Assign Storage Blob Data Contributor Role
Step 3: Save Integration
Box
Box can be configured as a source or destination for your Agents. To connect a Box account to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- If a Box integration already exists, click “Select” under “Box” and choose an account. Otherwise, click “Connect” and click to authorize access
- Select the folder you wish to connect to
Email
Agents can be set up to receive emails as a source, or send emails to a destination address. To connect an email address to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- Select the “Email” integration
- If adding as a source:
- Copy the recipient email address (this is where emails must be sent to)
- The recipient address can also optionally be modified
- (Optional) Specify a sender or domain the email must be sent from. If omitted, the Agent will accept emails from any email address
- Click “Confirm”
- Send or forward emails to the recipient address
- If adding as a destination:
- Specify a recipient email address
- Create a prompt for the Agent and ensure the prompt name includes the keyword “email” (e.g. “email address” or “email subject”)
- Select this prompt from the “To:”, “Subject:”, or “Body:” fields
- (Optional) Modify the generated sender address, or use your own. This is the address the Agent will send emails from
- When using your own email address, you will need to send and accept a verification email for the specified address
- Click “Confirm”
Specify Dynamic Email Address, Subject, and Body
Specify Dynamic Email Address, Subject, and Body
An Agent can send emails to a fixed recipient address, or dynamically generate the recipient address, subject, and body based on the Agent’s output. To do this:
Gmail
Gmail can be configured as a source for your Agents. To connect a Gmail account to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source
- If a Gmail integration already exists, click “Select” under “Gmail” and choose an account. Otherwise, click “Connect” and click to authorize access
- When prompted by Google, ensure you select the following required scopes: View your email messages and settings.
- (Optional) Specify a sender (email address) or labels to filter emails. By default, all emails to the account will be part of the source
- Click “Confirm”
Google Drive
Google Drive can be configured as a source or destination for your Agents. To connect a Google Drive to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- If a Google Drive integration already exists, click “Select” under “Google Drive” and choose an account. Otherwise, click “Connect” and click to authorize access
- When prompted by Google, ensure you select the following required scopes: See, edit, create, and delete all of your Google Drive files.
- Select the folder you wish to connect to
Google Sheet
Results from an Agent can be exported to a spreadsheet in your Google Drive.
Select Google Drive as a destination using the instructions above, then:
- Select “xlsx” as the export format
- Click “Export as Single Excel File”
Adding or removing Runs from the Agent will add or remove rows from the Google Sheet, respectively.
Notion (KMS)
Knowledge Management Systems (KMS) can be configured as prompt documents for your Agents.
Supported systems:
- Notion
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to connect an account
- Click the “KMS” card
- If a KMS integration already exists, click “Select” under “KMS” and choose an account. Otherwise, click “Connect” and click to authorize access
Salesforce (CRM)
CRM (Customer Relationship Management) systems can be configured as a destination for your Agents.
Supported systems:
- Salesforce
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a destination
- Click the “CRM” card
- If a CRM integration already exists, click “Select” under “CRM” and choose an account. Otherwise, click “Connect” and click to authorize access
Sharepoint
Sharepoint can be configured as a source or destination for your Agents. To connect a Sharepoint drive to an Agent:
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a source or destination
- If a Sharepoint integration already exists, click “Select” under “Sharepoint” and choose an account. Otherwise, click “Connect” and click to authorize access
- Select the site you wish to connect to, followed by the drive, and then any directory within the drive
Excel
Results from an Agent can be exported to a spreadsheet in your SharePoint.
Select SharePoint as a destination using the instructions above, then:
- Select “xlsx” as the export format
- Click “Export as Single Excel File”
Adding or removing Runs from the Agent will add or remove rows from the SharePoint Excel file, respectively.
Webhook
Check out the Integrate with Webhook Connection section for details on setting up your service to receive webhook deliveries. Once the your service is ready, you can follow the steps in this section to register your webhook.
- Navigate to the Agent you wish to connect
- Click the “Connections” tab and click to add a destination
- If a Webhook integration already exists, click “Select” under “Webhook” and choose an account. Otherwise, click “Connect” and follow the configuration steps below:
- Enter the webhook URL you wish to connect, e.g.
https://example.com/webhook/document-agent/results - Click “Continue”
- Copy the “secret” and save it securely. Use the secret to validate authenticity and integrity of requests from Kolena
- Click “Finish”
- (Optional) Specify an additional path to the selected webhook URL. The final URL for the destination would be
<webhook_url>/<path> - Click “Confirm”
Show Webhook configuration steps
Show Webhook configuration steps
