Python Forum
File Watcher and File modifying chatbot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Watcher and File modifying chatbot
#1
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.
  • 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.
Reply
#2
(Sep-17-2018, 09:37 AM)sreevik Wrote: Can this be done using ChatterBot library.
You're probably not likely to get the answer to this that you expect - this is a small forum and we don't necessarily know about all the random modules out there; if you do get an answer to this, it would more likely be because someone went and read the docs for you than that they already knew when they read your post.

(Sep-17-2018, 09:37 AM)sreevik Wrote: Do we need to use logic adapters to make the bot do tasks.
Similarly, we probably lack the necessary context to answer this question.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write variable in a python file then import it in another python file? tatahuft 4 860 Jan-01-2025, 12:18 AM
Last Post: Skaperen
  JSON File - extract only the data in a nested array for CSV file shwfgd 2 1,014 Aug-26-2024, 10:14 PM
Last Post: shwfgd
  FileNotFoundError: [Errno 2] No such file or directory although the file exists Arnibandyo 0 808 Aug-12-2024, 09:11 AM
Last Post: Arnibandyo
  Need Assistance with Creating an AI Chatbot for Client's Website LauraB 4 1,212 Aug-08-2024, 06:00 AM
Last Post: Siska
  "[Errno 2] No such file or directory" (.py file) IbrahimBennani 13 6,103 Jun-17-2024, 12:26 AM
Last Post: AdamHensley
  file open "file not found error" shanoger 8 5,912 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Need to replace a string with a file (HTML file) tester_V 1 1,861 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  How can I change the uuid name of a file to his original file? MaddoxMB 2 2,068 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 2,070 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,976 Dec-15-2022, 04:32 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020