Skip to content
niryariv edited this page Nov 9, 2010 · 9 revisions

Supported Tags

The target URL can assign tasks to KalSMS using the Reply XML format. At the moment, three tags are supported:

<reply>

The entire response is always provided inside a <reply> tag.

<sms>

<sms phone="555">hey</sms>

Send an SMS message a phone number.

<sms-to-sender>

<sms-to-sender>hey</sms>

Send a message to the original sender’s phone. (Essentially just a convenience tag, equivalent to <sms phone="sender">hey</sms>)

Complete Reply

Here’s an example for a complete reply (see Examples for more):

<reply>
  <sms phone="1234">Hey</sms>
  <sms phone="5678">Hello</sms>
  <sms-to-sender>Hey, sender. Sent "Hey" to 1234 and "Hello" to 5678</sms-to-sender>
</reply>
Clone this wiki locally