Read.ai Integration - Admin Setup Guide
Created: May 20, 2024 / Last Updated: May 20, 2024
Author: Brendan McDonald (brendan@cstoolkit.app)
Read.ai Integration - Admin Setup Guide
Prerequisites
- Must have read.AI Pro for access to integrations
Installation
- Chose install for Admins Only
- Acknowledge and install readIntegration

- On the Installation Complete Screen, click Done and move on to readIntegration configuration.

Site Configuration
read.ai uses a webhook to integrate with Salesforce, because of this, you are required to set up a publically accessible salesforce site.
- Register Salesforce Site
- From Setup, search for Sites (or locate Sites, Setup > User Interface > Sites and Domains > Sites)
- Click on Sites

- On the Sites screen, acknowledge the Sites Terms of Use, and click “Register My Salesforce Site Domain”

- Create Salesforce Site
- Once you have a registered Salesforce site, create a new site using the “New” button on the bottom section of the Sites screen.

- Configure the new site
- Site Label: SalesforceHook
- Site Namel: SalesforceHook
- Site Contact: Salesforce Admin
- Default Record Owner: Salesforce Admin
- Active: [checked]
- Active Site Home Page: UnderConstruction (or chose any site page)
- Clickjack Protection Level: Allow framing by the same origin only (Recommended)
- Lightning Features for Guest Users: [checked]
- Enable Content Sniffing Protection: [checked]
- Enable Browser Cross Site Scripting Protection: [checked]
- Referrer URL Protection: [checked]
- Redirect to custom domain: [unchecked] (recommended)
- Cache public Visualforce pages: [checked]

- Click Save
- Give Guest Site User Permissions
- On the Site, click “Public Access Settings”
- On the SalesforceHook Profile click “View Users”
- Click “Site Guest User, SalesforceHook”
- On the User page, in the “Permission Set Assignments” section, click “Edit Assignments”

- Add ReadWebhook to “Enabled Permission Sets”

- Click Save
Named Credential Configuration
- Copy the link from the site that was created
- Example: https://nosoftware-customizatio387-dev-ed.scratch.my.salesforce-sites.com
- From Setup, search for Named Credentials (or locate Named Credentials, Setup > Security > Named Credentials)
- Configure Named Credentials
- Click “Salesforce Webhook”
- In the URL field, replace “https://yourSalesforceSite.com/”, with the site link you copied from the previous step

- Click Save
Read.ai Configuration
- Copy the URL you pasted in the SalesforceWebhook Named Credentials
- Login to your read.ai account
- Click Apps & Integrations in the left hand side bar
- Scroll down and click “Webhooks”

- Add Webhook
- Click “Add Webhook”
- Webhook name: SalesforceHook
- HTTPS URL: Paste the URL from Named Credentials
- Example: https://nosoftware-customizatio387-dev-ed.scratch.my.salesforce-sites.com/services/apexrest/cstoolkit/api/invokeReadWebhook/
- Click “Create Webhook”

- Test Webhook
- Click the ellipses beside the newly created Webhook
- Click “Send test request”

- You should see a green toast message that says “Your test API call was successful!”
- Check Salesforce to see if Event was created
- Go to Home > Calendar
- Look for an event called “[Read.ai] Meeting Title”
- Click the event record, it should look like this:

- You’re done!