Deloying agents with Data Access

Congratulations! You've built your first agent with Data Access, and published it to Sema4.ai Control Room. Now it's time to deploy it - and make available to your business users.

Deploying agents with data access is just like any other agent - with a few extra steps. If you are deploying your first agent, make sure to read our guide to deploying agents before continuing.

This tutorial will highlight the Data Access specific steps in the deployment process.

Step-by-step guide

Review details

Once you initiate the deployment process, you will be asked to review the details of the agent. You'll see all your queries that exists in actions.

The view will show you the data sources (database connections) that are used and will need to be configured. In addition, you will see which files are included as data sources as part of the agent.

Review Agent details
Review Agent details

Configure deployment and actions

Configure the deployment and actions as you'd do for any other agent.

Configure data sources

Now you'll be asked to configure the data sources that you want to use in your agent.

Configure data sources
Configure data sources

For each of the data sources you need to configure, you will be asked to create a new connection detail. The saved connection details contain the vital information like host, port, username and password needed to connect to the data source. You can reuse the same connection details for multiple data sources in different agents.

Create new connection detail
Create new connection detail

If you already have a connection detail saved, you can select it from the dropdown list. The data connections will be accessible through Configuration - Data tab later on for editing.

Deploy

Once hitting the Deploy button, the agent will be deployed. The deployment process will take a bit longer than usual as we will start the Data Server and configure the data sources. You may leave the deployment in progress page and view the status through Deployed Agents page whenever you wish.

Agent details view

For all deployed agents, you can view the details and edit the agent configuration.

Agent details view
Agent details view

The functionality related to data access in this view is:

  • View all data sources: You can view all the data sources, models and files that are used in the agent here.
  • Editing data connection: If you need to edit the data connection, you can do it here.

Managing stored connection details

The connection details used for data sources are accessible in the Configuration - Data tab. Connetion details are stored in customer VPC the exact same way as the Secrets.

Connection details
Connection details

Apart from viewing the currently stored connection details, you can also:

  • Create new connection detail: You can create a new connection detail by clicking the + Data Connection button. After creating the connection detail, you can use it in the agent deployment process.
  • Delete connection detail: You can delete an existing connection detail by clicking the ... and Delete button. If you are trying to delete a connection detail that is used in an agent, you will be asked to remove the connection detail from the agent first.
  • Edit connection detail: You can edit an existing connection detail by clicking the ... and Edit button.

When editing Connection Details in use with an agent, the changes will be reflected in the agent immediately.