Prerequisites
What you’ll need to make this possible:- Salesforce admin access - Required to create flows, named credentials, and custom buttons and to create the SFDC connector in Cargo (if not already the case)
- Cargo workspace - With write access and a Tool set up
- API access - Your Cargo API token and tool endpoint URL
Step 1 - Create and configure a Tool in Cargo
Create a new Tool in Cargo that will handle the account research and Salesforce updates- AI prompt for account research
- Salesforce Update action to update the Account record
- Input parameters to receive data from Salesforce
e276dc32-aca1-4136-bbe7-dce879346c58is your unique tool ID<your_token>is your Cargo API token
Step 2 - Create a named credential
- Go to Setup → Named Credentials.
- Click New and select Legacy Named Credential.
- Enter the label and URL for your Cargo endpoint.
- Save the credential.
Step 3 - Register an external service
In Setup → External Services, register a new oneImportant to note
ReplaceCargoPathby your Tool URL from Cargo, make sure to take the part startingv1and endingexecuteMake sure theschemasection of this reflects the fields that you’ll be specifying in **Step 4.2 **below. As an example, we’ll be using the following.
Step 4 - Create a flow
4.1 - Retrieve account records
Create a flow that pulls account records from Salesforce.4.2 - Map fields in an assignment step
Map the Salesforce fields to the inputs required by your Cargo HTTP call.4.3 - Add a screen step at the end of the flow
Add a screen element to show results or request user input before finishing the flow.4.4 - Map the variable(s) created during the HTTP callout action’s creation into the assignment action
Step 5 - Add a custom button to your Accounts interface
Go to Setup → Object Manager → Account → Buttons, Links, and Actions.- Create a new Flow Button.
- Link it to the flow you just built.
- Add the button to the Account page layout.
Testing your integration
Verify the setup
- Test the button - Click your custom button on an Account record
- Check the flow - Ensure the flow runs without errors
- Monitor the Tool - Verify the Cargo Tool executes and updates the Salesforce record
- Review results - Confirm the Account record is updated with the research data
Common issues and solutions
“Flow failed to start”- Check that the custom button is properly linked to the flow
- Verify the flow is active and has the correct permissions
- Verify the named credential is correctly configured
- Check that the API token is valid and has proper permissions
- Ensure the tool ID in the URL matches your Cargo tool
- Confirm the tool is receiving data from Salesforce
- Check that the Tool is active and properly configured
- Verify the Salesforce update action has the correct field mappings
Next steps
Once your integration is working:- Train your team - Show reps how to use the new button
- Monitor usage - Track which accounts are being researched
- Optimize prompts - Refine your Tool’s AI prompts based on results
- Scale up - Consider adding similar buttons for Contacts or Leads

