Node Types

Complete reference for all node types in StarHash.

Node Types

StarHash provides six node types to build any USSD flow.

Menu Node

Displays a list of options for the user to choose from.

Configuration

FieldDescription
TitleText displayed above options
OptionsMenu options (label + where it goes)
FooterOptional text below options (e.g., "0. Back")

What Users See

Welcome! Select an option:
1. Check Balance
2. Send Money
3. Buy Airtime
4. Help
0. Back

Tips

  • Keep options to 5-7 items max for readability
  • Use "0" for back/cancel actions
  • Keep labels short (USSD has 182 char limit)

Input Node

Prompts the user to enter data.

Configuration

FieldDescription
PromptThe question or instruction
Variable NameWhere to store the response
ValidationOptional rules (number, phone, etc.)
Next NodeWhere to go after input

What Users See

Enter amount to transfer:

Validation Types

TypeDescription
TextFree text with optional min/max length
NumberNumeric input with optional min/max value
PhonePhone number format
PINPIN code (for secure input)

Display Node

Shows a message and continues to the next node.

Configuration

FieldDescription
MessageText to display (can include variables)
Next NodeWhere to go next (automatic)

What Users See

Processing your request...

Use Cases

  • Loading/processing messages
  • Confirmation screens that auto-continue
  • Information displays

Branch Node

Routes to different nodes based on conditions.

Configuration

FieldDescription
ConditionsList of if/then rules
DefaultWhere to go if no conditions match

Example Setup

ConditionThen go to
balance >= amount"Sufficient Funds" node
balance > 0"Insufficient Funds" node
(default)"Zero Balance" node

Condition Operators

OperatorDescriptionExample
==Equalsstatus == "active"
!=Not equalstype != "guest"
>Greater thanbalance > 100
>=Greater or equalage >= 18
<Less thanattempts < 3
<=Less or equalcount <= 5
&&Andage >= 18 && verified == true
||Orrole == "admin" || role == "manager"

Action Node

Executes backend logic like API calls.

Configuration

FieldDescription
Action TypeWhat to do (HTTP, SMS, Set Variable)
ConfigurationSettings for the action
Result VariableWhere to store the result
Success NodeWhere to go on success
Error NodeWhere to go on failure

Action Types

Make an API call to your backend:

SettingExample
URLhttps://api.example.com/balance/${phone}
MethodGET, POST, PUT, DELETE
HeadersAuthorization tokens, etc.
BodyJSON data to send

End Node

Terminates the USSD session.

Configuration

FieldDescription
MessageFinal message shown to user

What Users See

Transaction complete! Ref: TXN123.
Thank you for using our service.

Tips

  • Always provide a clear final message
  • Include transaction references when applicable
  • Keep within the 182 character limit

Node Reference Table

Node TypeOutputsUse Case
MenuMultiple (one per option)User choices
InputOneCollect data
DisplayOneShow info
BranchMultiple (one per condition)Logic routing
ActionTwo (success/error)Backend logic
EndNoneTerminate session