CAST subarchitectures for planning dialogue functional mapping and high level control