To integrate Agent Assist UI modules with Salesforce, you need access to the following resources:

- [**Node.js**](https://nodejs.org/en/download/package-manager)

  Follow the recommended installation instructions for your operating system.
- [**Salesforce CLI**](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm)

  Follow the recommended installation instructions for your operating system.
- [**Google Cloud CLI**](https://docs.cloud.google.com/sdk/docs/install-sdk.md.txt)

  Install the `gcloud` command as instructed and authenticate using `gcloud auth login`.
- **Salesforce**

  Sign in at your instance URL or the [Salesforce sign-in page](http://login.salesforce.com) and note the following:
  - Your Salesforce **My Domain URL** . Follow these steps to find the **My Domain URL** :
    1. Click **Setup** \> **Setup**.
    2. In the **Quick Find** box, enter **My Domain** . The domain name is in the following format: `MY-DOMAIN-NAME.develop.my.salesforce.com`.
  - Your Salesforce organization ID. Follow these steps to find the organization ID:
    1. Click **Setup** \> **Setup**.
    2. In the **Quick Find** box, enter **Company Information** . Note: These integration steps have been tested with [Salesforce Developer Edition](https://developer.salesforce.com/signup) only. Differences in feature licenses and the Salesforce interface might arise if you use another edition.
- [**Agent Assist integration backend**](https://github.com/GoogleCloudPlatform/agent-assist-integrations/tree/HEAD/aa-integration-backend)

  1. Follow [the instructions](https://github.com/GoogleCloudPlatform/agent-assist-integrations/tree/HEAD/aa-integration-backend#how-to-deploy-and-run) to set up the integration.
  2. Before running the deploy script, configure the following environment variables in an `.env` file at the project root:
     - `AUTH_OPTION`: Set this to `SalesforceLWC`.
     - `SALESFORCE_DOMAIN`: A domain name similar to `YOUR_SUBDOMAIN.develop.lightning.force.com`. You noted this value in the Salesforce prerequisite. Exclude `https://`.
     - `SALESFORCE_ORGANIZATION_ID`: You noted this value in the Salesforce prerequisite.
     - `APP_AUTH_OPTION`: Set this to `Twilio`. Only applies to Twilio users.
     - `TWILIO_ACCOUNT_SID`: Set this to your Twilio Account SID. Only applies to Twilio users.