Before You Get Started
Important: Before setting up a workflow, ensure your agent is properly configured with scenarios in the Cekura dashboard.
Finding Your Agent ID
Using the Dashboard
Using the Dashboard
- Log in to your Cekura dashboard
- Navigate to the Agents section
- Select your agent
- Copy the Agent ID displayed in the agent details
Using the API
Using the API
You can retrieve your agent ID programmatically using the Cekura API:The response will include your agent ID in the
id field.Using Tags vs Scenario IDs
You can run tests in two ways:Using Scenario IDs
Run specific scenarios by their IDs. Use this when you want to test exact scenarios.
Using Tags
Run all scenarios with specific tags. Use this when you want to test groups of scenarios (e.g.,
smoke-test, critical).Step-by-Step Tutorial
1
Create Workflow File
In your repository, create a file at
.github/workflows/test-agents.yml:2
Configure Variables & Secrets
Go to your repository → Settings → Secrets and variables → ActionsAdd Secret (API Key):
- Click New repository secret
- Name:
CEKURA_API_KEY - Value: Your API key from the Cekura dashboard
- Click the Variables tab
- Click New repository variable
- Add required variables:
AGENT_ID- Your agent ID (required)
- Add one or both of the following:
SCENARIO_IDS- Comma-separated scenario IDs (e.g.,123,456,789)TAGS- Comma-separated tags (e.g.,smoke-test,critical)
- Optionally add:
PHONE_NUMBER- Outbound phone number for testing (e.g.,+1234567890)

3
Start Test Run
To test your workflow, make a change to your codebase and raise a pull request. This will trigger the workflow automatically.

4
Monitor Workflow
- Go to your repository on GitHub
- Click the Actions tab
- You’ll see your workflow running
- Click on the workflow run to see detailed logs

Advanced Usage
Different Triggers
Run on Push Only
Run on Push Only
Run on Pull Request Only
Run on Pull Request Only
Manual Trigger
Manual Trigger
For more information about workflow triggers and events, check out the GitHub Actions official documentation.
Environment-Specific Testing
Test different environments (staging, production) with separate secrets:Testing with Phone Numbers
When testing agents that make outbound calls, you can specify a phone number:Action Inputs
The action accepts these inputs:| Input | Description | Required | Default |
|---|---|---|---|
agent_id | Agent ID to test | Yes | - |
api_key | Cekura API Key | Yes | - |
scenario_ids | Comma-separated scenario IDs (e.g., 123,456,789) | No* | - |
tags | Comma-separated tags (e.g., smoke-test,critical) | No* | - |
phone_number | Outbound phone number for testing | No | - |
api_url | Cekura API URL | No | https://api.cekura.ai |
frequency | Run each scenario N times | No | 1 |
timeout | Timeout in seconds | No | 3600 |
scenario_ids or tags must be provided (or both)
Example with All Options
Troubleshooting
Workflow Not Found
Workflow Not Found
Make sure your workflow file is:
- Located in
.github/workflows/directory - Pushed to your repository (workflows don’t run from local files)
- Named with
.ymlor.yamlextension
Secrets Not Working
Secrets Not Working
Common secret issues:
- Secret names are case-sensitive - must match exactly
- Secrets must be added in Settings → Secrets and variables → Actions
- Forked repos can’t access secrets from the parent repository
Workflow Runs But Tests Fail
Workflow Runs But Tests Fail
Check these in your workflow logs:
- API key is valid and has correct permissions
- Agent ID and Scenario IDs are correct
- Scenario IDs format: comma-separated with no spaces (e.g.,
123,456,789) - Try increasing timeout with
timeout: '7200'parameter
Variables Not Found
Variables Not Found
Make sure you’re using Variables (not Secrets) for Agent ID and Scenario IDs:
- Go to Settings → Secrets and variables → Actions → Variables tab
- Variables are referenced with
vars.VARIABLE_NAME - Secrets are referenced with
secrets.SECRET_NAME