1. A method comprising: receiving a call flow for a spoken dialog service; converting, via a processor, the call flow into a higher level representation with state variable assignments and comparisons dependant on shapes in the call flow; and converting the higher level representation into a state-based representation.