NOTE This is a very early version, everything will change until version 1.0.0 is released
Command Line tool to call someone and tell them something, and (optionally) get a confirmation.
Requires a SignalWire account.
Shell exit code | Meaning |
---|---|
0 | Confirmed |
1 | Not confirmed |
2 | Timeout or error |
Usage: app [options]
Options:
--csv [string] CSV file to read
--concurrency [number] How many calls to make at once (default: "1")
--to [string] Phone number to dial
--from [string] Caller ID (default: "+12068032583")
--pauseBeforeGreeting [number] Seconds to wait before greeting (default:
"3")
--greeting <string> What to say when call is answered
--tell <string> What you want to tell
--confirm [boolean] Confirm the message (default: "true")
--loops [number] Attempts at confirmation (default: "1")
--thanks [string] What to say when confirmed (default: "Thank
you. Have a nice day!")
--timeout [number] Seconds to wait until call is answered
(default: "30")
--confirmStrings [string] Comma-delimited list of strings that count as
a confirmation (default:
"yes,okay,sure,yeah,uh huh,yep")
--verbose [boolean] Verbose output (default: "true")
-h, --help display help for command
- Set up a SignalWire account
- Purchase a phone number - This will be used for your CallerID
- Create a new API token
- On the home / dashboard screen find the Project ID (looks like a UUID)
- Use the token you created in step (3) above
- Put the project ID and token into a new file
~/.tellthat.env
:
SW_PROJECT_ID=xxxx
SW_TOKEN=xxxx