Hey hi.. I don't think this functionality using any NLP ? we using command abstract class to create a command.. every time we have to do hard coding for every command. Is it possible to map simple question s with some simple responses instead of hardcode every time..
@codyroche7586
2 жыл бұрын
Great video! Been looking to make a bot and this makes it look so easy.
@encoride3312
2 жыл бұрын
Hello! Thanks for this video. I am using a M1 Mac. I followed your steps, but when I messaged to my bot 'help' or 'echo', nothing showed up. No logs from the terminal either. I also tried without approved_domains, still no luck. Could you help? Many thanks!
@yourstrawberrypeachmochi5573
Жыл бұрын
have you find the solution?
@yourstrawberrypeachmochi5573
Жыл бұрын
i have the same problem
@bumbly1uk
2 жыл бұрын
Nice Work 2022 Lets hope it’s a good one What A Year We All Have Had - KZitem
@akshaykadidal23
Жыл бұрын
hi the websocket is available but the webex bot is not responding :( any help / guidence is appriciated
@vanshbhandari2690
2 ай бұрын
sameee
@spacesla4490
11 ай бұрын
Great video but seems outdated. Also when I tried to follow the commands on the updated github I fucked up somewhere I guess... Did anyone manage to set up a webex bot recently?
@PraxisAndTheory
10 ай бұрын
I've been attempting to set one up but because the library uses websockets, which doesn't support proxies, this doesn't work for my current project
@BeMindfulMusic
2 жыл бұрын
nice work, subbed
@RamKumar-jt1fi
2 жыл бұрын
Hi !!! I would like to know how to read callback keyword from multiple 'actions' (say nested actions) and would like to add if callback keyword is not present thru set_default_card_callback_keyword. Would you suggest any method to do so. (I tired for loop inside card{Action} array and its not working) From your code I could see adding default callback_keyword (set_default_card_callback_keyword) is set to first element in the action array.
@narbigogul5723
2 жыл бұрын
Great video, thanks for sharing, I have a question, is it posible to use websockets with MS Teams, so I can have a similar bot but using MS Teams instead of Webex ???
@0x2142
2 жыл бұрын
Hi there, thanks for the comment. I did some quick searching, and I'm not seeing any documentation that MS teams supports websockets - but I don't use it so I'm not 100% sure.
@PraxisAndTheory
10 ай бұрын
Does anyone know how to make this work when behind a proxy? Or am I just out of luck with this particular library cuz it uses python's websockets library?
@0x2142
10 ай бұрын
Hi there - Yeah unfortunately, my understanding is that the underlying module used for websockets doesn't support proxies.
@rod.hpadilla
2 жыл бұрын
works very well!! thanks for sharing Can you give me a recommendation to avoid the program breaks when the user type weather with capital "W". ex. Weather 76146.
@0x2142
2 жыл бұрын
Hi Rodrigo - Thanks for the comment! Is this an issue you're seeing? In my testing, I can type any variation of the command keyword & still trigger the appropriate command. I checked through the source for the webex_bot package, and it looks like it already applies message.lower() when trying to find the correct command to match.. So I don't think this should be an issue
@rod.hpadilla
2 жыл бұрын
@@0x2142 I debug the code and found when human type "Weather 77001" the variable message = 'Weather 77001'. Using lower() the result is 'weather 77001'. In the other hand when human type "weather 77001" message = ' 77001'. Im using webex-bot 0.2.8
@0x2142
2 жыл бұрын
Okay, I see what you mean. I was able to test this today - so regardless of capitalization, the correct command gets triggered... but if the capitalization doesn't match, then the command_keyword is not being stripped (and then is still part of the message). I think this might be something for the upstream webex_bot project to address, but in the meantime you could use this: if self.command_keyword == (message.split()[0]).lower(): message = " ".join(message.split()[1:]) That will check to see if the message includes the command keyword - and if it does, remove it. Place that in the beginning of the execute() function & it should work.
@0x2142
2 жыл бұрын
Just to add on here - I found where the issue lies in the upstream project. So I modified it & submitted a pull request for it to be fixed in the main package. I don't know how responsive the maintainers are, but you can track that pull request here: github.com/fbradyirl/webex_bot/pull/16
@rod.hpadilla
2 жыл бұрын
@@0x2142 thanks a lot Matt, I just test the workaround and works very well!! I hope the maintainers approve the change soon!
@thomaslokomotive5634
2 жыл бұрын
I'm getting this Error: File "/Users/***************/Desktop/WebexChatBot/weather.py", line 4, in class WeatherZip(models.command): TypeError: module() takes at most 2 arguments (3 given) Why?
@0x2142
2 жыл бұрын
Hey Thomas - I just checked into this, and it turns out the upstream webex_bot module introduced a change which broke my example code. There is now an additional parameter being passed to the execute() function, which I wasn't previously accounting for. I've updated the script on my GitHub - so if you pull down the new version it should work now!
@PreppygirlIsha
2 жыл бұрын
Can we access file attachment using this webexbot
@pd2871
3 ай бұрын
The bot does not respond back even after websocket is opened.
@vanshbhandari2690
2 ай бұрын
did u find any solution??
@pd2871
2 ай бұрын
@@vanshbhandari2690 I dumped websocket and used webhooks instead. There was a git repo which helped me setup with httpserver.
@wworldtech
2 жыл бұрын
Nice !!
@RamKumar-jt1fi
2 жыл бұрын
Hi !!! I have Primary Adaptive card with Action.ShowCard where it needs to show an secondary Adaptive Card which has Action.Submit. When i hit submit in the secondary card i get below error. if raw_message.lower() == c.command_keyword or raw_message.lower() == c.card_callback_keyword: AttributeError: 'NoneType' object has no attribute 'lower' Can you please help me with above error. Please note: I am not using Adaptivecardbuilder. Rather i have my own card built with json format in Python and import that card to my registered BOT command. Like Echo card and Echo card content
@0x2142
2 жыл бұрын
Hi there, it's hard to say without seeing more of the code - but if I had to guess, I think you may be looking at the wrong property. When a user sends a message to the bot, the execute() function receives that message which you can use lower() on. However, when a card action is submitted - the message value will be empty. Instead, the action is sent as an attachment as a separate input to execute(). In my sample code from this video, that would be the "attachment_actions" input variable for the execute() function. Here is an example of a bot I built last year, which does this: github.com/gve-sw/gve_devnet_webex_incident_response_bot/blob/master/commands/actions.py In that code, when the execute() function is called, I first try to check if there is an attachment - which would imply that a card submission was sent. If not, then I assume the user is just trying to send the command - so I send the card data. So you may also have to build in a conditional to check whether it's a user message or a card submission.
@RamKumar-jt1fi
2 жыл бұрын
@@0x2142 thanks !!! I will check this...
@9495326503
2 жыл бұрын
Hi Thanks for this vedio. Coould you please advice how to end bot.run().? In my code , lines below bot.run() is not executing and it keep stays in the line bot.run(). Please help
@0x2142
2 жыл бұрын
Hi there - When you start the bot with bot.run(), the bot code will block any further execution. If you wanted to run additional code after this - you would need to spin off the bot to it's own thread, which I didn't cover in the video since that adds quite a bit of complexity. If you're able to run your additional code prior to starting the bot, that would probably be easier
@9495326503
2 жыл бұрын
@@0x2142 Thank you
@9495326503
2 жыл бұрын
@@0x2142 Is there any way to send message to the approved users at the beginning of the execution rather than waiting for the user command, please?
@SirAkshayJoshi
Жыл бұрын
One question, when I send any garbage input, it sends a card back saying "Here are my available commands. Click one to begin.". How to change this?
@0x2142
Жыл бұрын
Looks like you can remove the default help response the commands.remove(). Then you could either replace it with your own, or just leave none - check the github issue here for more details: github.com/fbradyirl/webex_bot/issues/25
@RamKumar-jt1fi
2 жыл бұрын
Hi !!! I get an error "[ERROR] [base_events.asyncio.default_exception_handler]:1738 Future exception was never retrieved future: " Can you please help me with this. I am trying to just check if initial message in Webex bot is received or not
@0x2142
2 жыл бұрын
Hello! There was recently an update to the upstream webex_bot package, which introduced a breaking change. If you're using my example code, please pull down the latest version. I updated the example earlier this week to fix the issue.
@RamKumar-jt1fi
2 жыл бұрын
Thanks!!!
@gr6472
Жыл бұрын
getting ssl certification error
@bbck15
2 жыл бұрын
I have been trying to get this to work, the script confirms that the websocket has been opened, but when i type "help" in the chatroom nothing seems to happen. Any idea where i could start looking to solve this problem? (Auth token is correct btw). Thank in advance.
@natta7143
2 жыл бұрын
I'm having similar issue. Kindly let me know if you have resolved the issue.
@0x2142
2 жыл бұрын
Hi there - I did run into this issue once during my original prep-work for this video. I have several Webex developer accounts with different email addresses - and I was only seeing this issue with my 0x2142.com email address. I spent too much time trying to debug & reach out to people for help with no luck... So I just ended up trying with another email address & was able to get it to work. In my testing though, it seemed like the websocket listener just wasn't ever receiving the message from the webex cloud.. Like for some reason, I could sent the message - but webex would never forward it to the webex_bot listener. I have no idea why this was happening
@natta7143
2 жыл бұрын
@@0x2142 sure will try it out with other email address Thank you for response
@andreyballesteros9400
2 жыл бұрын
@@natta7143 I created several accounts and I still can't get in touch with you, can you?
@michaelcather1490
2 жыл бұрын
I am running into an issue where it is telling me user is not approved to interact with bot. I have added the correct domain and even tried to add myself as an approved user but still no luck. Has anyone had this issue?
@0x2142
2 жыл бұрын
Are you able to start the bot without the approved_users & approved_domains parameters? Wondering if it works for you when it's wide-open. I haven't seen the issue you're experiencing, but curious to hear back
@changaming08
2 жыл бұрын
good
@RikardKrvaric
2 жыл бұрын
With Python 3.10, all sorts of problems are now appearing. First Websockets 8.x in included in Py3.10, which throws an error about loop not being required anymore. If you upgrade Websockets to v10.x a host of other errors occur. Remove Python 3.10, and install Python 3.8.10, and it works fine again
@0x2142
2 жыл бұрын
Yep, it looks like there is an open issue against this module for 3.10 support: github.com/fbradyirl/webex_bot/issues/13 Please follow the upstream module for updates
@0x2142
2 жыл бұрын
Hello - Just wanted to provide an update. It looks like the project fixed the issues with 3.10+ support today! Hopefully this resolves your issues
@RamKumar-jt1fi
2 жыл бұрын
Hi !!! Can you share how to add or update cards in my WebEx bot ?
@0x2142
2 жыл бұрын
Hi there - I usually use this python library to help build adaptive cards: pypi.org/project/adaptivecardbuilder/ I have considered recording a follow up to this video, with a tutorial on adaptive cards. Would that be helpful? If so, I can work on it, but it may be several weeks until it would be uploaded.
@RamKumar-jt1fi
2 жыл бұрын
Thanks for files.... Please consider making a video on this topic Cards and Button with python. I would be very helpful.
@0x2142
2 жыл бұрын
Hi there - Just wanted to share that I posted a new video on Adaptive Cards this morning! You can check it out here: kzitem.info/news/bejne/0mqCx3ashpeBh6w
@abhishekshukla6418
2 жыл бұрын
Hi! Can we add this bot to a Teams Space?
@0x2142
2 жыл бұрын
Hi there! Yes, you can. In that case, the bot would only respond to direct @mention messages.
@abhishekshukla6418
2 жыл бұрын
@@0x2142 Understood, also is there a way to provide input from bot to internal scrip and give output accordingly?
@abhishekshukla6418
2 жыл бұрын
Also, I want to have a chatty bot which responses as per response
@0x2142
2 жыл бұрын
Hi, yes the bot is very extensible. Once the bot receives input from the user, anything can be done with that input - you would just need to write the Python code to handle it.
@abhishekshukla6418
2 жыл бұрын
@@0x2142 Hi, I tried creating a command to take input from card, but whenever I give command keyword help card is displayed
@ankitdhami385
11 ай бұрын
4:12
@sajjadwasti6537
2 жыл бұрын
Hi ! great video and explanation , I am trying to recreate your steps but getting this error when I run the bot.py file File "C:\Python310\lib\site-packages\webex_bot\webex_bot.py", line 65, in __init__ self.command.add(EchoCommand()) AttributeError: 'WebexBot' object has no attribute 'command'. Did you mean: 'commands' I went through the webexbot.py code on the repository also but cannot figure out what's wrong Could you pls help me out Thank you
@0x2142
2 жыл бұрын
Hi there - Looks like there have been a number of updates to this module recently, and one of them seems to have broken something. I am able to see the typos in the module code, but someone else already submitted an issue against the project: github.com/fbradyirl/webex_bot/issues/18 I would wait until it is fixed - or pull down an earlier version. For example, you could force install v0.2.17 with pip: "pip install -Iv webex_bot==0.2.17". This version still works!
@sajjadwasti6537
2 жыл бұрын
@@0x2142 Thank you so much for replying, it's working now, but even though the issue is resolved in the repository there are still some errors with the 0.2.19 version. and also to anyone else who might face the same error pls try doing it with python 3.9 it as for me python 3.10.2 showed some other errors
Пікірлер: 71