Look at the API documentation for sending a message to get your parameters:
Then search the forum for API examples utilizing the scripts section in automation. This might help: