During the creation of the spot let the bot asking the confirmation for the sentiment analysis.
Technically, analyse spot.py and add:
- a conversation state, like POSTING_ANALYSIS
- improve the logic inside spot.py to ask about the sentiment analysis
- create a table "sentiment_analysis_post" in the db to remember the spot which are "analyzable", a table with only post_id should be enough
- remember to let the user that with /sentiment_analysis he can get more info about it
Note: you can check how the function "save_post()" in file pending_post.py is implemented for adding a post refenrece in a db table
During the creation of the spot let the bot asking the confirmation for the sentiment analysis.
Technically, analyse spot.py and add:
Note: you can check how the function "save_post()" in file pending_post.py is implemented for adding a post refenrece in a db table