Built-in variables
Lookfor provides some built-in environment variables that are automatically available:| Variable | Description |
|---|---|
SHOP_DOMAIN | Your Shopify .myshopify.com domain. |
SHOP_URL | Your store’s public URL. |
Custom variables
Creating a variable
- Go to Settings > Environment Variables.
- Click Add Variable.
- Set the Key (e.g.,
SHIPPING_API_KEY) and Value. - Save.
Using variables in API tools
Reference environment variables in your API tool configurations using double curly braces:| Field | Example |
|---|---|
| Header | Authorization: Bearer {{SHIPPING_API_KEY}} |
| URL | https://api.provider.com/v1/endpoint?key={{API_KEY}} |
| Body | {"token": "{{SERVICE_TOKEN}}"} |
{{VARIABLE_NAME}} is replaced with the stored value. The actual value is never visible to the agent or the customer.
Using variables in MCP servers
Environment variables can also be used in MCP server configurations for authentication headers and connection strings.Best practices
- Never hardcode secrets in API tool configurations. Always use environment variables.
- Use descriptive names:
SHIPPING_PROVIDER_API_KEYis better thanKEY1. - Rotate regularly: When you update an API key with your provider, update the environment variable in Lookfor too.
- Keep it organized: Use a consistent naming convention (e.g.,
SERVICE_NAME_KEY_TYPE) so your team can easily find and manage variables.

