Sep-17-2018, 09:37 AM
I have a python code that generates a .txt file whenever one of my Informatica job fails.
I would like to develop a chatbot in python that would pop up whenever a file is generated in a location and show the contents of the file to the user in the chat window. So the file content would be something like below.
1) wf_insert_upd_fact_tbl failed 2018-09-16 06:02:00
The bot should then wait for user response. If the user responds restart wf_insert_upd_fact_tbl, the bot should create another .txt file with the instructions which would then be picked up by another py script and the failed job would be restarted. So basically my requirement is as below.
Can this be done using ChatterBot library. Do we need to use logic adapters to make the bot do tasks.
I would like to develop a chatbot in python that would pop up whenever a file is generated in a location and show the contents of the file to the user in the chat window. So the file content would be something like below.
1) wf_insert_upd_fact_tbl failed 2018-09-16 06:02:00
The bot should then wait for user response. If the user responds restart wf_insert_upd_fact_tbl, the bot should create another .txt file with the instructions which would then be picked up by another py script and the failed job would be restarted. So basically my requirement is as below.
- Bot should pop up when a .txt file is generated (wait for the event)
- Bot should print out the contents of the file into the chat window.
- It should take user response and create separate .txt file with whatever the user has responded.
Can this be done using ChatterBot library. Do we need to use logic adapters to make the bot do tasks.