Stateful programming API for External voice API developers