Nalo Solutions
Connect StarHash to Nalo Solutions for USSD services in Ghana and Nigeria.
Nalo Solutions
Nalo Solutions provides USSD and SMS services across Ghana and Nigeria.
Step 1: Get Your API Key
- Log in to Nalo Dashboard
- Go to API Settings
- Copy your API key
Step 2: Configure in StarHash
- In StarHash Studio, go to Settings → Providers
- Click Add Provider
- Select Nalo
- Enter your credentials:
| Field | Value |
|---|---|
| API Key | Your Nalo API key |
| Shortcode | Your USSD shortcode |
| Country | Ghana or Nigeria |
- Click Save
Step 3: Set Up Callback URL
- In Nalo Dashboard, go to USSD → Shortcodes
- Select your shortcode
- Set the callback URL:
https://api.starhash.dev/hooks/nalo/{instance_id}
- Save your configuration
Step 4: Deploy Your Flow
- In StarHash Studio, open your flow
- Click Deploy
- Select the Nalo instance
- Click Publish
Session Timeout
Sessions timeout after 3 minutes of inactivity. Design flows to complete within this window.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Invalid API Key | Wrong key | Verify in settings |
| Invalid Shortcode | Wrong code | Check shortcode configuration |
| Session expired | Timeout occurred | Sessions last 3 minutes |
Country Detection
StarHash automatically detects the country from the phone number. Use a Branch node to route users based on their location:
| Condition | Then go to |
|---|---|
$phone.startsWith("234") | Nigeria Flow |
| (default) | Ghana Flow |
SMS Integration
Send SMS from your USSD flows:
{
"actionType": "sms",
"config": {
"to": "${phone}",
"message": "Transaction confirmed. Ref: ${txnId}",
"provider": "nalo"
}
}
Best Practices
- URL encode responses - Special characters must be encoded
- Handle MSGTYPE=2 - Gracefully handle session ends
- Multi-country - Design flows that work in both countries
- Keep it short - 3-minute timeout limit

