Close GH-797: Decoupled prompting from the inner architecture.. Fixes #645