Тёмный

How to Trigger a Bot from the Control Room API |  

Automation Anywhere
Подписаться 23 тыс.
Просмотров 19 тыс.
50% 1

This episode of #AAillustrates is a continuation of Episode 13: Intro to the Control Room API: • Introduction to the Co...
In this episode, we build a small demo bot that passes values from, and is triggered by the Control Room API. This episode uses a free API testing tool called postman. If you dont have it yet, check out www.getpostman.com to download it. The URL for the A2019 postman collection used in the video is: www.postman.com/collections/b...
About Micah Smith
Micah is a Developer Evangelist at Automation Anywhere. He's an RPA guru with a love for building bots and making work more human.
Stay connected to Automation Anywhere and the world of RPA:
Subscribe on RU-vid: / automationanywhere
Our blog: www.automationanywhere.com/blog
Facebook: / automationanywheresoft...
Twitter: / automationanywh
#LearnRPA #AutomationAnywhere #MicahSmith

Наука

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 93   
@jimfrost8263
@jimfrost8263 3 года назад
Thanks @Micah! As a Solution Architect (not a developer) I find your teaching style to be extremely good. You present technical complexity in a very straight-forward manner. Looking forward to your videos in the future!
@Automationanywhere
@Automationanywhere 3 года назад
We're happy you find these videos useful, Jim!
@jolurami
@jolurami 2 года назад
Thank you so much @Micah!
@Bandude231
@Bandude231 3 года назад
We are migrating from A11, very helpful thanks for the help.
@andonii46
@andonii46 3 года назад
Awesome!
@sbanyas
@sbanyas 11 месяцев назад
Great video! Any suggestions on videos of how to incorporate this (calling APIs by using token) into a web page?
@WhoisNicko1
@WhoisNicko1 6 месяцев назад
Thanks Micah! Quick question, do you know if it is possible to get execution or operational information from bots without needing the bot insight license?
@pratikrahane4101
@pratikrahane4101 2 года назад
Most descriptive session. You have any video on access auth api, normal api from taskbot
@gtasapcuser
@gtasapcuser 8 месяцев назад
Hey is there any Rest endpoint which can be used to get a bots detail. Is it possible to get what input variables and there types that needs to be passed while invoking the bots.
@laurentp89
@laurentp89 10 месяцев назад
I set up a validated URL on my CR settings for the callback and I'm passing the callbackinfo url to the bot but I'm getting nothing back. Where can I check what is going on?
@czamorab
@czamorab 2 года назад
Hi, do you have a example of how pass varables but in automation anywhere 11.3?
@TheCooGuR
@TheCooGuR 2 года назад
It's great that we can use the Control Room API to trigger a bot to run an automation, however; this entails having to authenticate and know what user ID, and bot runner ID.. Is there a way to define an OpenAPI/Swagger interface and have an automation be that API??
@akashrawat5735
@akashrawat5735 Месяц назад
Can we access the control room apis with the community edition. If yes then how can I get the "control room" url
@melquimelencianomatos8734
@melquimelencianomatos8734 2 месяца назад
I need to be able to send a file to a bot from a web page, is this possible to do using the automation anywhere Deploy API?
@eduardobravodiaz5555
@eduardobravodiaz5555 3 года назад
Great, is working now with an enterprise version
@helloworld-td2bu
@helloworld-td2bu 2 года назад
Hey i want to run a bot in a specific time how can I do that one
@anishdubey5569
@anishdubey5569 3 года назад
Very fruitful video thank Micah. My question is - Is there any API which can be used to stop ongoing bot execution?
@Automationanywhere
@Automationanywhere 3 года назад
Hi Anish. At this time, there is no API to stop an in-progress bot.
@TheoXypteras
@TheoXypteras 2 года назад
Thanks for another great guide Micah! Any links to how to send a table variable?
@Automationanywhere
@Automationanywhere 2 года назад
Thanks for the feedback Theo! The docs page for the Control Room Deploy API is currently being updated - it has better explanations of mapping different data types now: docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/control-room-api/deploy.html
@studymat
@studymat 3 года назад
thanks for the video Micah, How do we leverage this to other applications as you discussed, do you mean do we have to copy body code? can you show us with one example? thanks in advance..
@Automationanywhere
@Automationanywhere 3 года назад
Thanks for watching, PS! Any application where API calls can be made could be used to trigger a bot in your environment. That could be through custom JavaScript, a custom Java application, Python script, or any number of other program languages/platforms that enable connections to other applications through API calls. If you look in Postman, the code that we used to trigger the bot can be exported in any number of languages directly from the Postman tool.
@robinjain12
@robinjain12 2 года назад
Thanks @micah! Very informative video, Could you please confirm if same postman collection can be used for v11 APIs. or we have different api collections for the v11. If yes, What is the link to import that into Postman?
@Automationanywhere
@Automationanywhere 2 года назад
Hey Robin - no separate link for a Postman collection...though many of the end points are the same/similar to what was shared for Automation 360.
@GabrielBrito-ln2ed
@GabrielBrito-ln2ed 3 года назад
Thank you for the video. I have a question. in the bot deployment stage I'm getting the following message: "message": "PERMISSION_DENIED: User gbds does not have permission to run as user (s): . [botrunner1] I would like to know where I get this permission. and what that permission would be. Thanks again for the video
@Automationanywhere
@Automationanywhere 3 года назад
Hi Gabriel. We recommend that you check which role botrunner1 is a part of and make sure that your account has access to trigger bots via this runner.
@dwithakshita
@dwithakshita 3 года назад
Hi. If the bot is running and another API call is made, then will it go in a queue and start execution after the current task completes?
@Automationanywhere
@Automationanywhere 3 года назад
Hi D. The second task for processing would be queued up to execute after the initial task is completed.
@YRUreal
@YRUreal 3 года назад
Hi Micah, do you know if there is a way to queue jobs or some other better technique with API (v1 & v2 swagger only), if the ID is being used to currently run other jobs ? The ID's Token appears to be alive only for a given instance, trying to see if a single ID could be used to run a multiple of jobs simultaneously, without disrupting any other jobs authentication...
@Automationanywhere
@Automationanywhere 3 года назад
Hi K Van. Thanks for the enthusiasm! Authentication tokens default timeout is 20 minutes - though this could be configured to a longer time period. Alternatively, using the /authentication/token endpoint would enable you to refresh an already-valid token on demand - further extending your time. When you think of the ID’s to log in to the CR API and bot runner accounts - those are 2 separate things. An account that is set up only for the purposes of kicking off automations would not have to be (and likely shouldn’t be) the same account used for running the bot runner. Consider creating some accounts that only exist for the purposes of running different jobs via the Control Room API while separating those functions out from any Bot Runner accounts. Should you need additional clarity on how this could be done, consider posting your scenario to A People or opening a support request ticket.
@YRUreal
@YRUreal 3 года назад
@@Automationanywhere Thanks for that added info...That all makes sense and we'll consider just that for our ID's!
@statesmphinyane946
@statesmphinyane946 2 года назад
Is it possible to pass the bot output results in the API response? e.g you have a bot that performs some calculations and you essentially want to pass back the calculated output variable values in the response back. I'm on Automation 360
@Automationanywhere
@Automationanywhere 2 года назад
Hey States - the response from a bot can be captured via a webhook. Because a bot run could take 3 seconds, or 30 minutes (which would time-out most any API call), a callback is done via webhook once the bot execution is completed. Alternatively, you could pass in a UID to the bot, and have the bot make a call back to your API upon completion along with the same UID to associate the return with the initial call.
@YRUreal
@YRUreal 3 года назад
Thanks Micah for the episodes 13 & 15, those API references really helped us finally get our AAE v11 API bot task to execute remotely using Postman! Now for next steps...would be awesome of there was some examples of how to extend this by exporting out in postman using the various coding type examples, python, shell, etc, etc. I'm not exactly sure how it should be broken up per POST call or kept together, more research on that is needed. We're trying to determine what possible end points we can or should use that are best for the enterprise against all other used systems, just like you mention users should be exploring. How are others properly storing and refreshing the token and or pw to be kept secure (I assume the generated token has a short life span? If pw's should be kept in CR locker, we'll continue to do that.)?
@YRUreal
@YRUreal 3 года назад
Quick update, I was able to convert the Postman calls over to powershell, it appears to be working, but will need to figured some more things around how to best handle the credentials...thanks!
@Automationanywhere
@Automationanywhere 3 года назад
Glad to hear the episodes were helpful in getting remote bot execution working in your environment. As to your request about other languages, fortunately Postman does an awesome job of this for you out of box. With any of the requests opened in Postman, look for the “Code” link on the right hand side of your screen below the Send/Save buttons. This will bring up a code snippet generator that will build all the code you need to make the same request you had open in 16+ languages - using a variety of libraries within those languages. This is the best way to get a jump start on taking some sample code to build into a custom solution of your own. As to your question about the tokens/storage. The tokens are good for 20 minutes by default - though you could extend this time through your CR configuration or by using the /authentication/token endpoint to refresh a currently valid token. For the secure storage of the credentials to call the CR API, one consideration would be authenticating with an API key instead of a password to reduce the capabilities of what anyone could do should they access your value. As for where to store the values, that could be specific to the programming language you’ve selected or it could be as centralized as using something like cyberArk (or another vault system) where passwords/keys/etc can be securely and centrally stored.
@YRUreal
@YRUreal 3 года назад
@@Automationanywhere Agreed, as I continue to explore the functions of that tool, it has become more clear to me as we move forward, showing us the benefits to getting started quickly using different various language options... We're making great progress on this front so far, thanks to you!!!
@smugada
@smugada 3 года назад
Thank you for the video, you saved a lot of time for me.
@cingler1331
@cingler1331 3 года назад
Thank you for this Video, would it be possible to have the Postman folder for AA V11.x please? - Thanks
@micahman33
@micahman33 3 года назад
Hey Sebastian - Rough guess is that ~90% of the endpoints are the same. You likely could use this exact same postman collection for the v11 API with only minor changes. You'd want to take a look at the /swagger/ endpoint for your v11 CR vs the A2019 community edition swagger to be sure though
@YRUreal
@YRUreal 3 года назад
It sounds like there many seminaries for the postman example collection Micah provided. But I agree... there is many of us that will be needing to migrate off of V11 to A2019, any tips/tricks/gotchas we'll need to know about or links to that info would be super helpful!!!
@alexstartsev5303
@alexstartsev5303 3 года назад
Hi Micah! Thanks for the nice video! My question is about how to get botOutVariables after execution of the bot? I have A2019 Enter. 4705 build, and I can't get values of output variables after execution, botOutVariables is not in the response. In the A2019 docs "Request bot deployment status", there is such functionality but it is not for my case. Which version of A2019 Enter: supports botOutVariables? A little suggestion for some other videos, may you also cover more advanced use cases for CR API? It will be much appreciated as this topic is not well covered yet.
@alexstartsev5303
@alexstartsev5303 3 года назад
Output variables are available via CR API after we updated A2019 to 6453. It is very useful, thanks to the AA team for continuous improvements!
@Automationanywhere
@Automationanywhere 3 года назад
Glad to hear you figured it out, Alex. We're always here to help.
@joserobertodossantosjunior7390
@joserobertodossantosjunior7390 3 года назад
@@AutomationanywhereUnfortunately I could not get the botOutVariables. It would be great if you could explain better how to use this resource. Thanks in advance
@abhishekkadam2055
@abhishekkadam2055 3 года назад
Hi, Thanks for the guide. I am using A2019 Community Edition and at 26:32 I think the part is for the CE users. I am unable to get the Bot Runner License due to which I am unable to Run the Bot using API. I have tried to add roles to the CE User but I cannot save changes as I do not have the privileges. Can you suggest any alternative for this? Or it is impossible to run the bot using API on CE?
@Automationanywhere
@Automationanywhere 3 года назад
Triggering a Bot through the API requires a Bot Runner license, which users don't have in Community Edition, so you wouldn't be able to use this particular endpoint in CE.
@McGurble
@McGurble 3 года назад
@@Automationanywhere I don't understand this licensing requirement. I am a dev in my enterprise org, so I have a creator license and access to a *development* VM. But I need to be able to run the bots remotely on that dev VM in order to develop and test using the API before handing off the code for deployment to our production environment where the bot runner licenses are used by the production team.
@Automationanywhere
@Automationanywhere 3 года назад
@@McGurble For testing of Unattended bot execution, you would need to have an Unattended Bot Runner license. The development license is designed for development and testing of bots from with in the development interface. Follow-up with your account manager if you require additional licenses.
@rajupgl
@rajupgl 3 года назад
HI Micah..I am using trial version of AutomationAnywhere Enterprise and I could able to make all the calls except deploy. Could you please let me know is this the limitation in trail version or do I need to modify some thing in user role to get this work done. I am getting below error "message": "PERMISSION_DENIED: Users provided do not have a valid license"
@Automationanywhere
@Automationanywhere 3 года назад
Hi Raju. The Automation Anywhere trial version does not include the Bot Runner license required for the deployment of a bot to an unattended Bot Runner.
@selormbruce6955
@selormbruce6955 3 года назад
please help @Micah! . i have passed in the runAsUserIds but I keep getting "{"code":"scheduler.validation.runAsUsers.empty","details":null,"message":"RunAs users is empty"}"
@Automationanywhere
@Automationanywhere 3 года назад
Hi Selorm. We recommend that you post a screenshot of your request payload on apeople.automationanywhere.com to get help with troubleshooting your code. Additionally, make sure that the User ID that you're referencing has a default device defined.
@francobaldasso9209
@francobaldasso9209 2 года назад
Hi! I´m exploring Automation Anywhere with the free trial. The process that i´m developing needs a Request Trigger, or at least that would be the best for it. But I guess that i can´t make it with the licenses of the free trial. I am right? Do I necessarily have to pay the bot runner license to carry out some tests?
@Automationanywhere
@Automationanywhere 2 года назад
Hey Franco - you can actually trigger bots using the API the same way Micah shows in this video. At the time of recording, triggering bots in Control Room API of Community Edition was not available, but it should be working for you now. Alternatively, other triggers like file/email triggers can be tested from the bot building interface of Community Edition. If you need to test specific unattended runner capabilities, get in touch with someone from our sales team who can understand your needs and help get you the access you need for testing.
@francobaldasso9209
@francobaldasso9209 2 года назад
@@Automationanywhere Hi, thanks for your answer! I was able to do several tests and they worked fine! I was just a bit confused. I just have another question, can i use de Deploy Bot request in the community edition?
@aphisitnuallong4781
@aphisitnuallong4781 2 года назад
Hello I used to use AAEv11 and then migrated to A360. In v11, attended bots can also be scheduled on the client, so I've been using that. Right now, it seems impossible to schedule attended bots on the A360 Is there a way to schedule attended bots on the A360?
@Automationanywhere
@Automationanywhere 2 года назад
Hey Aphisit - check out Triggers in the Automation 360 workbench. These enable you to kick off bot runs based on different criteria.
@aphisitnuallong4781
@aphisitnuallong4781 2 года назад
@@Automationanywhere thank you very much.
@Archit958
@Archit958 3 года назад
Indeed a great explanation on the use of A2019 BOT deployment API call. Just wondering how we can send a input file instead of input parameters using same API call.
@micahman33
@micahman33 3 года назад
Hey Archit - you wouldn't be able to send a file itself as the type for each value has to be one of the defined types for A2019. The only valid types are STRING, NUMBER, BOOLEAN, LIST, DICTIONARY, DATETIME. As an alternative though, you may consider triggering the bot with a string, where the string is the fully qualified path to the file up on a share drive.
@Archit958
@Archit958 3 года назад
Thanks for the clarification. Any recommendations if file needs to be picked from internet facing applications?
@micahman33
@micahman33 3 года назад
@@Archit958 I would do a custom package for that. You could feed in the file location as an input value, then call the internet facing application in the package (Java) to pass a file
@Archit958
@Archit958 3 года назад
@@micahman33- sounds great. Will give it a try.
@puyatbuddy
@puyatbuddy 2 года назад
If I have 3 bot runner and I want the queue to run in whatever bot runner available. How can we do it?
@Automationanywhere
@Automationanywhere 2 года назад
Hey Roen - Check out setting up device pools and using Workload Management (WLM): docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/workload/cloud-workload-an-overview.html
@yuvraj5216
@yuvraj5216 3 года назад
Hi! I get the following error when deploy bot - "message": "PERMISSION_DENIED: Users provided do not have a valid license"
@Automationanywhere
@Automationanywhere 3 года назад
Hi yuv raj, deploying a bot requires that you're using Enterprise A2019 as this functionality is not available in Community Edition. If you're already using Enterprise Edition, be sure that your role has access to deploy bots using the bot runner account in question.
@hernanmauricioperezmunoz4937
@hernanmauricioperezmunoz4937 7 месяцев назад
Hi guys. I've tried to consume the API, but I get next error message : "UM9999 - An unexpected problem occurred.". I've tried using domain\username, domain\emailaccount and many more and continue the error. Should I set any configuration in Control Room before consume it ? I hope your help. Thanks
@akashrawat4325
@akashrawat4325 Месяц назад
Same with me. How do I get the control-room-URL. If you found it, plz let me know.
@CofreDigital
@CofreDigital 3 года назад
Hi! I get the following error "{ "message": "PERMISSION_DENIED: Users provided do not have a valid license"}" when I tried use the call '/v3/automations/deploy' my license is for Automation AnyWhere Enterprise but is trial, is there any limitation on this kind of license ? Thanks!
@yuvraj5216
@yuvraj5216 3 года назад
same problem here, are you find any solution?
@CofreDigital
@CofreDigital 3 года назад
@@yuvraj5216 1 - I Installed a lot of times many versions "on premises" not cloud, wich caused the problem, then I deleted my bot runner user and I created a new one. 2 - Don't forget to delete SQL Server Database as well, the new installation will recreate for you. 3- Assign all roles available to the new bot runner user. 4 - Don't use the server to run the bot it will not work due to some limitation of the AA tool, you need other VM or PC to run exclusively the task bot, you can use the server to start the task bot not to run. 5- Remember that I'm usign AA 2019 Enterprise, Community will never work with API. 6- If you have any bot runner previously configured make sure that you are running the correct version of this agent with "user name" and "password" correctly, I used the ouput of the follwing command "whoami" of cmd.
@yuvraj5216
@yuvraj5216 3 года назад
@@CofreDigital thank you so much
@dilpreetsohanpal3062
@dilpreetsohanpal3062 3 года назад
Thank you for the video. Four points if you could please address (1) What if my Bot is return an output value, how do I get the output value, I know it was available in 11.3.4 however could not find in A2019 (2) What is the significance of call back URL and how to use it, perhaps a simple example to illustrate it would be helpful (3) Suggestion: We do lot of API calls to bots, it would be very helpful if instead of ID (Bot ID) and User ID , the names could be used, .i.e. username (Bot runner) and Bot (File Name). This way we can reduce two additional steps in the entire process of triggering a bot by API (4) In my view the automation ID is generated as soon as the bot it triggered, however it may take longer for bot to actually run and finish, how does the calling know if bot was run successfully etc, also when integrating this with other process it actually is always a async call. Thanks for time
@micahman33
@micahman33 3 года назад
Hey dilpreet the call to trigger a bot is asynchronous - to say that the control room is not waiting for the completion of the bot execution before retuning a response to your API request. If you needed the bot to send some output, that call would need to be made from the bot itself using the REST POST action. (You may consider passing in some GUID or something so an incoming call with data from the bot can be coordinated with the outgoing call to trigger the bot). Once you've made the deployment request you can use the /v2/activity/list endpoint + the deviceID to get the status of bot executions should you need to understand if one is still running.
@veeresh4441
@veeresh4441 3 года назад
I'm getting this error when authenticating through usename/password(I do attach username , password, controlroomurl in environment variables) {"code":"json.deserialization.exception","details":null,"message":"Invalid request parameters"}
@micahman33
@micahman33 3 года назад
Try hard coding your username/password one time in the JSON body making sure that the JSON formatting for "Beautify" is selected. It may be that your password has an illegal character which would need escaping. (Double quotes and backslash both come to mind).
@veeresh4441
@veeresh4441 3 года назад
@@micahman33 can we use this api with community edition?
@Automationanywhere
@Automationanywhere 3 года назад
Yes, that will work!
@sravankumaraluvala3484
@sravankumaraluvala3484 Год назад
Just like passing inputs from API, should have added video for reading bot output from output variables
@jmerejoc
@jmerejoc 3 года назад
Thank you for the video very usefull, can you share postman collections?
@Automationanywhere
@Automationanywhere 3 года назад
Hi Jordi. The postman collection can be found here: www.postman.com/collections/bb5cd3541d29e192cd43
@jordimerejo6305
@jordimerejo6305 3 года назад
@@Automationanywhere Thank you!!
@learningtolive91
@learningtolive91 11 месяцев назад
Hi @Micah.. I followed all steps that you showed. But I am getting error as access denied when I am triggering the bot from api though from my bot creator account I am able to run the bot in control room but getting error from api. Please help me
@learningtolive91
@learningtolive91 11 месяцев назад
Hi @AutomationAnywhere team please respond
@learningtolive91
@learningtolive91 11 месяцев назад
@Automationanywhere team please
@Automationanywhere
@Automationanywhere 9 месяцев назад
Sounds like a permission issue! Make sure that the account you're using for your bot runner has access to execute the automation. Also, make sure that your developer account has access to trigger automation executions on another device/user's behalf
@jaiminprajapati1436
@jaiminprajapati1436 2 года назад
Can we get a video on repository Management API?
@Automationanywhere
@Automationanywhere 2 года назад
Thanks for the reccomendation @Jaimin - we'll pass it along to Micah. In the meantime, he suggested a Dev Portal tutorial on Bot Lifecycle Management (aka Repository Management) developer.automationanywhere.com/blog/bot-lifecycle-management-in-automation-360
@4imble426
@4imble426 2 года назад
Thanks Micah, I have been tasked with building some bots to improve some our repetitive processes. I am building a portal / front end to manage a lot of the bots that will do this and triggering the processes from there.. This video and the previous one really helped get me up and running. I was wondering if you have done any videos on user configuration, what the roles mean and what sort of accounts you should create etc. I noticed ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UZJ68r64oxA.html you each seem to have your own BR/BC account. As someone with limited licences that seems quite wasteful. I was considering creating one BR/BC account that could be used for my whole team, would that not be recommended?
@Automationanywhere
@Automationanywhere 2 года назад
Hey 4imble - Micah and team have dedicated Bot Runner and Bot Creator accounts because each license enables different capabilities and couldnt be applied to the same account. For example, if you were going to run a bot unattended, you couldn't use a Bot Creator license for that, it would need to be done using a Bot Runner. That said, a single Bot Runner account could/should be used across multiple bots. So a runner may be doing an HR task at 9am, but by 9:30am it may be doing a finance task or something totally unrelated. Hope that helps
@Artech.Ranjit
@Artech.Ranjit Год назад
for some reason, ur videos is not clear somehow. only ur face is very much clear. but behind screen actual workplace area is not.
Далее
RPA Use Case: Mortgage Processing and AARI
56:19
Просмотров 25 тыс.
Automation Anywhere A360: Bot Logging
25:53
Просмотров 1,7 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.