Unit 0: Environment Setup
Hands-On Session (45 minutes)
Learning Objectives
- Successfully deploy Salesforce metadata and seed data
- Configure Workato connection and start recipes
- Verify end-to-end connectivity
- Troubleshoot common setup issues
Step 1: Run the Setup Script (15 min)
Copy and paste the appropriate command for your operating system. The script clones the repository, checks for required prerequisites (Git, Node.js, make), installs any that are missing, and sets up the Salesforce CLI.
1.1 Run relevant setup script for your machine
Mac/Linux
curl -fsSL https://raw.githubusercontent.com/workato-devs/dewy-resort/main/bootstrap.sh | bash
Windows
powershell -ExecutionPolicy Bypass -Command "Invoke-Expression (curl https://raw.githubusercontent.com/workato-devs/dewy-resort/main/bootstrap.ps1 -UseBasicParsing)"
Once the script completes, change into the project directory:
cd dewy-resort
Watch for any errors and flag a facilitator or assistant for help.
1.2 Verify CLIs
make status
This checks that the Workato CLI (wk) and Salesforce CLI (sf) are both installed and shows their authentication status.
If
wkis not found: Install it now —brew install workato/tap/wk(macOS/Linux) orscoop install wk(Windows).
CHECKPOINT: make status shows both CLIs installed
1.3 Create an .env file
The project includes a .env.example file in the root directory with placeholder values for all required environment variables. Copy this file into the app/ directory and save it as .env:
Mac/Linux
cp .env.example app/.env
Windows
$copyParams = @{
Path = ".env.example"
Destination = "app\.env"
}
Copy-Item @copyParams
Important: This
.envfile will be used throughout the workshop. Future setup steps will have you update its values as you configure each service.
1.4 Initialize Local Database
cd app
npm install
npm run db:setup
Expected Output:
Database initialized successfully
Tables created: users, conversations, messages, devices...
Navigate back to the dewy-resort folder:
cd ..
CHECKPOINT: app/.env file exists with placeholder values
Step 2: Initialize CLIs & Deploy Salesforce Metadata (10 min)
2.1 Verify CLIs
From the dewy-resort directory, verify that both CLIs are available:
make setup
This checks for the Workato CLI (wk) and installs the Salesforce CLI (sf) if needed.
2.2 Authenticate to Salesforce
sf org login web --alias myDevOrg
A browser window will open. Log in to your Salesforce Developer Edition org.
Tip: If you have multiple Salesforce accounts, make sure to use the correct username for your Developer Edition org (the one you noted during pre-workshop setup).
2.3 Deploy Metadata + Seed Data
make sf-deploy org=myDevOrg
Expected Output:
Deploying Salesforce metadata to myDevOrg...
[x] Deployed 4 custom objects
[x] Deployed Lightning application
[x] Assigned permission set
[x] Imported seed data (23 accounts, 24 contacts, 10 rooms)
2.4 Verify in Salesforce
sf org open --target-org myDevOrg
- Click App Launcher (9 dots, top left)
- Search for “Dewy Hotel Management”
- Click Hotel Rooms tab
- Verify room records appear
If the list appears empty: Don’t worry—Salesforce defaults to “Recently Viewed” which only shows records you’ve opened. The data is there. Use the list view search box or global search and type “Oceanview” to confirm hotel room records exist.
CHECKPOINT: Hotel room records visible in Salesforce
Step 3: Configure Workato (10 min)
3.1 Get Workato API Token
- Log in to your Workato Developer Edition
- Go to Workspace Admin -> API Clients -> Client roles [https://app.trial.workato.com/members/api/clients]
- Click Create Client Role tab
- Set permissions:
- Projects tab -> Project Assets — select: Projects & folders, Connections, Recipes, Skills, MCP servers, Recipe Versions, Jobs
- Projects tab -> Recipe Lifecycle Management — select: Recipe lifecycle management, Export manifests
- Tools tab -> Workspace data — select: Environment properties
- Tools tab -> API Platform — select: API portal, Collections & endpoints, Clients & access profiles
- Admin tab -> Workspace Details — select: Workspace details
- Admin tab -> Developer API clients — select: API Clients, API client roles
- Click Save Changes
- Click API Clients tab [https://app.trial.workato.com/members/api/roles]
- Click Create API Client button
- Enter “My CLI Client” in the Name field
- Select “New client role” from the Client Role dropdown
- Select “All Projects” in the Project Access drop-down menu
- Click Create Client
- Copy the token (you won’t see it again)
3.2 Add Token to Environment
Edit the .env file in the project root (not app/.env):
WORKATO_API_TOKEN=your_token_here
3.3 Authenticate and Deploy Recipes
make workato-login
This reads the token from .env and creates an authenticated CLI profile. Verify with wk auth status.
Next, initialize the local project and push all recipes to your workspace:
make workato-init
make push
Expected output: A list of .recipe.json files with created status. Lint warnings are expected and will not block the push.
3.4 Configure Salesforce Connector in Workato
- Go to Projects → Workspace Connections
- Click the Salesforce connection
- Click Connect
- Authenticate to your Salesforce Developer Edition org
- WARNING: DO NOT rename the connection
3.5 Manual Activation (If Needed)
Some recipes with dynamic SOQL queries may fail to start because their Salesforce connection isn’t automatically linked. If all your recipes started successfully in Step 3.7, skip to Step 3.8.
The recipes that may need manual activation:
Search bookings by room and datesSearch room by numberSearch rooms on behalf of staffSearch rooms on behalf of guest
For each affected recipe:
- Navigate to the recipe in Workato (under orchestrator-recipes or atomic-salesforce-recipes)
- Click the recipe name to open its detail page
- Click the Connections tab (between “Jobs” and “Versions”)
- In the left panel, you’ll see “Salesforce connection” with a red “Requires connection” warning
- In the main panel under “Showing active connections”, click your Salesforce connection
- A green “Connection updated successfully” banner confirms it worked
Once all 4 are linked, run make start-recipes again to pick up the stragglers.
3.6 Configure Stripe Connection (Optional)
- Go to Projects → Workspace Connections
- Click the Stripe connection
- Click Connect
- Select API key as the authentication type
- Get your Stripe Secret API Key:
- Open the Stripe Dashboard in a new tab
- Stripe is in Test mode by default when you don’t fill out a profile. You must be in Sandbox mode:
- Click your account drop-down menu (upper left)
- Select “Switch to Sandbox” → choose your sandbox environment
- Close any pop-ups
- Click the “Developers” toolbar (bottom of page)
- Select “API keys”
- Under “Standard keys”, find the Secret key
- Click Reveal test key to show the full key
- Copy the key (starts with
sk_test_)
- Paste the Secret API Key into Workato’s connection field
- Click Connect to complete authentication
- WARNING: DO NOT rename the connection
Always use test mode keys for workshop environments. Never use live/production keys (
sk_live_).
3.7 Start Recipes
make start-recipes
If all recipes start successfully, skip ahead to Step 3.8. If some recipes fail to start, follow Step 3.5 to link their connections, then run make start-recipes again.
NOTE: If you did not set up or activate Stripe, some Stripe recipes will fail to start — that’s expected.
CHECKPOINT: All Salesforce recipes showing “Running” status
3.8 Set Up API Platform
make setup-api
This creates two API collections (dewy-resort-guest and dewy-resort-manager), their endpoints, and an API client with credentials written to app/.env.
3.9 Enable API Endpoints
make enable-api-endpoints
This activates all API endpoints so they can receive traffic. All recipes must be running first.
3.10 Set Up MCP Servers
make setup-mcp
This creates two MCP servers (dewy-resort-guest and dewy-resort-manager) and writes the MCP URLs and tokens to app/.env.
CHECKPOINT: API endpoints enabled, MCP servers created, app/.env populated with URLs and tokens
Step 4: Verify End-to-End (5 min)
4.1 Start the Application
app/scripts/dev-tools/server.sh start
4.2 Verify the Dashboard
- Open http://localhost:3000
- All indicators should show Mock Mode enabled
Setup Complete!
You now have:
- Salesforce org with hotel data model
- Workato workspace with all recipes running
- API collections and MCP servers configured
- Local application connected to all services
Common Issues & Solutions
| Issue | Solution |
|---|---|
wk not found | Install: brew install workato/tap/wk (macOS/Linux) or scoop install wk (Windows) |
wk auth fails | Re-run make workato-login, check token in root .env |
| Salesforce login timeout | Re-run sf org login web --alias myDevOrg |
| Recipes won’t start | Manual activation (Step 3.5), then re-run make start-recipes |
| “Connection not configured” | Verify Workspace Connections authenticated |
| API Collection 401 | Check WORKATO_API_TOKEN in .env |
| Room search returns empty | Verify SF seed data imported |
| API call fails silently | Check Tools → Logs in Workato for error details |
| Recipe returns error | Expand the job in Logs to see error message and code |
wk CLI command errors | Ensure API client scopes match guidance in Step 3.1 |