Simple Flask server running a Markov chain off of Obama's speech transcripts, exposing random sentences at https://talk-to-obama.herokuapp.com/chat
You can deploy this like any Flask app, or if you'd like to use the hosted API, simply request the aforementioned /chat
endpoint.
The endpoint takes two optional URL parameters, size and issue: ?size={Number || 'tweet'}
and issue={String}
.