I AE S In t er na t io na l J o urna l o f   Ro bo t ics a nd   Aut o m a t io ( I J RA)   Vo l.  1 5 ,   No .   1 Ma r ch   20 2 6 ,   p p .   1 49 ~ 1 61   I SS N:  2722 - 2 5 8 6 DOI 1 0 . 1 1 5 9 1 /i jr a . v 1 5 i 1 . pp 1 49 - 1 61           149       J o ur na l ho m ep a g e h ttp : //ij r a . ia esco r e. co m   Ca sca ding   a utom a ta to impro v e eff iciency   of   la rg e la ng ua g mo dels a g ents  wit h G ra ph RA G  f o r   error a na ly sis       H rish ik esh   K .   H a rit a s 1 ,   Vineet   H .   Sa da ra ng a ni 1 ,   G a nes ha y y a   I s hwa ra y y a   Sh ida g a nti 2 Da rsh a n   B a nk a pu re 1 ,   Ra hu l   K .   Vis ha l 1 ,   Sh re y a   Vij a y a s im ha 3   1 D e p a r t me n t   o f   A r t i f i c i a l   I n t e l l i g e n c e   a n d   M a c h i n e   L e a r n i n g ,   R a m a i a h   I n st i t u t e   o f   T e c h n o l o g y ,   B e n g a l u r u ,   I n d i a   2 D e p a r t me n t   o f   C o m p u t e r   S c i e n c e   a n d   E n g i n e e r i n g ,   R a ma i a h   I n st i t u t e   o f   T e c h n o l o g y ,   B e n g a l u r u ,   I n d i a   3 D e p a r t me n t   o f   El e c t r o n i c s a n d   C o m mu n i c a t i o n   En g i n e e r i n g ,   R a m a i a h   I n st i t u t e   o f   T e c h n o l o g y ,   B e n g a l u r u ,   I n d i a       Art icle  I nfo     AB S T RAC T   A r ticle  his to r y:   R ec eiv ed   Ap r   3 0 ,   2 0 2 5   R ev is ed   No v   1 2 ,   2 0 2 5   Acc ep ted   Dec   1 5 ,   2 0 2 5       Ro b o ti c   p ro c e ss   a u to m a ti o n   (R P A)  h a b e e n   d e p l o y e d   in   a   p leth o ra   o in d u stries ,   i n c lu d in g   th e   b a n k in g   a n d   i n su ra n c e   se c to rs.   Ho we v e r ,   t h e   k e y   c h a ll e n g e   o h a n d li n g   u n e x p e c ted   situ a ti o n s   m a n ifes ts  e it h e a a n   in a d e q u a c y   o p ro g ra m m in g   ( sin c e   a ll   si tu a ti o n s   c a n n o p o ss ib ly   b e   fo re se e n o in c o n g r u o u in p u ts.  In   p a ra ll e l,   d e e p   lea rn i n g   m o d e ls,   in c lu d in g   larg e   lan g u a g e   m o d e ls  (LL M s)  a n d   v is u a lan g u a g e   m o d e ls  (VL M s),  h a v e   sh o wn   h u m a n - li k e   c o g n it iv e   c a p a b il it ies   i n   re a l - wo rl d   tas k s,   g e rm i n a ti n g   t h e   field   o a g e n ti c   LL M s.  H o we v e r,   th e ir  c o m p u tati o n a e x p e n se ,   slo in fe re n c e   ti m e s,  a n d   m a ss iv e   e n e rg y   c o n s u m p ti o n   imp e d e   lar g e - sc a le  u sa g e .   We  p ro p o se   a   fra m e wo rk   t h a t   c o m b in e t h e   two   a p p r o a c h e to   e n a b le  e x p e d ien t   in v o c a ti o n   o LL M f o h a n d li n g   e x c e p ti o n a n d   su p e rv i sin g   RP A   b o ts.  It  a ims   to   m in imiz e   th e   n e e d   fo h u m a n   su p e rv isi o n   b y   m e ta”   a u to m a ti o n ,   w h il e   a lso   re d u c i n g   e n e rg y   u sa g e   a n d   p r o c e ss in g   t ime .   Th e   a u to m a ti o n   wo r k flo is  p re se n t e d   a a   g ra p h ,   a n d   o u r   p i p e li n e   u se th e   G ra p h RA G   fra m e wo rk   to   a n a ly z e   a n d   fix   e rro rs.  We  d e m o n stra te  th e   p o ten ti a o o u p ip e li n e   th r o u g h   t wo   re a l - wo rld   e x a m p les   in   th e   b a n k i n g   a n d   in su ra n c e   se c to rs,   p r o v i d e   o u r   G it Hu b   re p o sit o ry   fo r   re p r o d u c i b il it y ,   a n d   c o n c lu d e   with   f u t u re   re se a rc h   d ir e c ti o n s.   K ey w o r d s :   Ag en tic  lar g lan g u ag m o d el s   AI   en h an ce d   au to m atio n   E n er g y   ef f icien t   L L a g en ts   E r r o r   c o r r ec tio n   an d   co n tr o l   Hy p er   au to m atio n   L o la ten cy   ag e n ts   T h is i a n   o p e n   a c c e ss   a rticle   u n d e r th e   CC B Y - SA   li c e n se .     C o r r e s p o nd ing   A uth o r :   Gan esh ay y I s h war ay y Sh id a g an ti   Dep ar tm en t o f   C o m p u ter   Scie n ce   an d   E n g in ee r in g ,   R am aiah   I n s titu te  o f   T ec h n o lo g y     B en g alu r u ,   Kar n atak a,   I n d ia   E m ail:  g an esh ay y ash id a g an ti @ m s r it.e d u       1.   I NT RO D UCT I O N   R o b o t i c   p r o c es s   a u t o m a t i o n   ( R P A )   e m p l o y s   s o f tw a r e   a g e n t s ,   o r   b o t s ,   t o   s i m u la t e   u s e r   a ct iv i t i es   a n d   i n t e r a c t   w i t h   s o f t w a r e   s y s t e m s ,   t h u s   r e d u c i n g   t h e   w o r k l o a d   o f   h u m a n   e m p l o y e e s .   R P A   h as   al r e a d y   b e e n   w i d e l y   a d o p t e d   i n   p r a c t i c e ,   w i t h   s o l u t i o n   t e c h n o l o g i e s   o f f e r e d   b y   n u m e r o u s   v e n d o r s .   O r g a n i z a t i o n s   t h at   h a v e f f e c t i v e l y   i m p l e m e n t e d   R PA  a n d   s t r e a m li n e d   t h e i r   b u s i n es s   p r o c es s e s   h a v e   s e e n   p o s i t iv e   i m p a c t s   o n   t h e i r   s t r a t e g i c   o b j e c ti v e s ,   e m p l o y e e   p r o d u c t i v i t y ,   a n d   c u s t o m e r   s e r v i c e   [ 1 ] .   R P A   i s   es p e c i al l y   a t t r a c t i v e   t o   i n d u s t r i es  t h a t   h a v e   t r a d i ti o n a l l y   b e e n   e a r l y   a d o p t e r s   o f   n e w   t e c h n o l o g i es ,   p a r ti c u l a r l y   p r o c ess - a w a r in f o r m a t i o n   s y s t e m s   ( e . g .   b a n k i n g ,   i n s u r a n c e )   [ 2 ] ,   [ 3 ] .   E x a m p l e s   f r o m   t h e s e   i n d u s t r i e s   a r e   u s e d   t o   d e m o n s t r a t e   t h e   p r o p o s e d   a p p r o a c h .   S y e d   e t   a l .   [ 4 ]   p o s i t h e   S e a m le s s   H a n d li n g   o f   E x c e p t i o n s   as   o n e   o f   t h e   m a i n   t ec h n o l o g i c a l   r e s ea r c h   d i r e c t i o n s   o f   R P A .   T h e y   s t at t h a t   t h e   c a u s e   o f   e x c e p t i o n s   m a y   r a n g e   f r o m   a   c h a n g e   t o   a   u s e r   i n t e r f a c e   ( e . g . ,   d i f f e r e n t   s c r ee n   r e s o l u t i o n   o r   la y o u t ) ,   a   c h a n g e   t o   s y s t e m   i n ter a c t i o n   ( e . g .   t h u s e   o f   a   d i f f e r e n t   s y s t e m   r e q u i r e d   i n   h a n d l i n g   a n   a t y p i c a l   s ce n a r i o ) ,   t o   a   c h a n g e   i n   b u s i n e s s   r u l e s   ( e . g .   s p e ci a l   c o n s i d e r a t i o n s   r e g a r d i n g   c e r t a in   t y p e s   o f   c u s t o m e r ) .   As   a   r es u l t,   b o t s   m a y   s t o p   w o r k i n g   o r   p r o g r e s s   t o   a n   i n c o r r e c t   p at h ,   l e ad i n g   t o   t h e   n e e d   f o r   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 7 2 2 - 2 5 8 6   I AE I n J   R o b   &   A u to m Vo l .   1 5 ,   No .   1 Ma r ch   20 2 6 :   1 49 - 1 61   150   h u m a n   i n t e r v e n t i o n   [ 5 ] [ 7 ] .   T h i s   n e c es s it y   l e a d s   t o   i n c r e as ed   o p e r a t i o n a l   c o s ts ,   r e d u c e d   s p e e d ,   a n d   h i n d e r s   t h e   u b i q u i t y   o f   R PA   w h i l e   a ls o   i n cr e a s i n g   t h e   h es i ta n c y   i n   a d o p t io n .   Ag en tic  AI ,   a n d   a g en tic  lar g lan g u ag m o d els  ( L L Ms )   in   p ar ticu lar ,   h av e   g ain ed   im m en s e   p o p u lar ity   f o r   th ei r   n ea r - h u m an   ab ilit ies  in   p er f o r m i n g   r ea wo r ld   task s ,   in clu d in g   i n ter ac tin g   with   UI .   L ev er ag in g   r o b u s ze r o - s h o t   lear n in g   ca p ab ilit ies,  th ese  m o d els ex em p lifie d   b y   I B Gr an ite  an d   Mic r o s o f t s   Au to g en ef f ec ti v ely   g en er alize   f r o m   m in im al  in p u to   ex ec u te  co m p lex   o p er atio n s   ac r o s s   d iv er s d o m ai n s   [ 8 ] [ 1 0 ] .   B u ilt  o n   s tate - of - t h e - ar tr a n s f o r m er   a r ch itectu r es  an d   u n s u p er v is ed   lear n in g   p ar ad ig m s ,   th ey   en ab le   au to n o m o u s   d ec is io n - m ak in g   a n d   s tr ea m lin ed   u s er   in ter f ac e   in te r ac tio n s .   Ho wev er ,   th ese  p er f o r m an ce   g ain s   co m at  th ex p en s o f   s ig n if ican t   co m p u tatio n al  o v er h ea d ,   lead in g   to   h ig h   e n er g y   co n s u m p tio n   [ 1 1 ] ,   [ 1 2 ] in cr ea s ed   laten cy   [ 1 3 ] ,   a n d   elev ate d   o p er atio n al  c o s ts .   On g o in g   r esear ch   co n ti n u es  to   f o cu s   o n   m itig atin g   th ese  d r a wb ac k s   wh ile  f u r th er   r ef in i n g   th eir   f u n ctio n al  ca p ab ilit ies.    T h is   p ap er   p r o p o s es  th u s o f   L L Ms  th r o u g h   t h Gr ap h R AG   [ 1 4 ]   f r am ewo r k   as  an   in t er m ed iar y   s u p er v is o r .   T h is   wo r k   s tr id es  to war d s   h y p er   a u to m atio n   [ 1 5 ]   an d   u n ass is ted   R P A.   Pre v io u s ly ,   J ain   et  a l .   [ 1 6 ]   p r o p o s ed   th u s o f   L L Ms f o r   R PA f o r   f o r m   f illi n g .   Gr ap h R AG  is   n o v el  f r am e wo r k   b u ilt  to   p r esen lar g a m o u n ts   o f   co n tex t u al  in f o r m atio n   to   an   L L M.   I n   th Gr ap h R AG  g lo b al  s ea r ch   p r o ce s s   [ 1 4 ] ,   [ 1 6 ] ,   t h L L co n f er s   k n o wled g g r ap h   to   p r o d u ce   an   o u tp u t   to   a n y   u s er   q u er y .   W p r o p o s r e p r esen tin g   th e   R PA  wo r k f lo w   p r o ce s s ,   em b ed d ed   with   o p er atio n al  in f o r m atio n ,   as  g r ap h   to   b q u er ied   b y   th L L in   p r o ce s s   s im ilar   to   th af o r em en ti o n ed   g lo b al  q u er y ,   en ab lin g   m o r d etailed   an aly s is   o f   th b o t s   wo r k f lo w.   W p r o v id e   g en er alize d   p i p elin with   h eu r is tic - d r iv e n   ex p ed ien t   L L ca lls   ap p licab le  ac r o s s   d o m ain s   an d   task s .   T h id ea   o f   ex p ed ien tly   ca llin g   L L Ms i.e . ,   o n ly   wh en   an   e x ce p tio n   o cc u r s   an d   th R PA  is   p r o g r ess in g   alo n g   an   in c o r r ec p ath was  in s p ir ed   b y   o th er   s o f twar en g in ee r i n g   r esear ch   s o lu tio n s   in clu d in g   [ 1 7 ] .   T h ex p ed ie n ca llin g   o f   L L Ms  o f f er s   v ar io u s   b en ef its   in clu d in g   m in im iz in g   co m p u tatio n al   co s ts   an d   h en ce ,   en er g y   u s a g e,   with   th en v ir o n m en tal  b en ef its   b ein g   s ig n if ican tly   p r o n o u n ce d   at  s ca le;  in cr ea s ed   r esil ien ce   to   ch a n g es  in   th u n d er ly in g   p r o ce s s   as  n ee d ed a n d   r e d u ctio n   i n   p r o ce s s in g   tim co m p ar ed   to   r e p lacin g   th R PA b o t w ith   an   L L M.       2.   L I T E R AT U RE   SU RVE Y   R PA  h as  ev o lv ed   r ap id l y   o v er   th p ast  d ec a d e,   b ec o m in g   co r n e r s to n tech n o lo g y   in   in d u s tr ies  s u ch   as  b a n k in g ,   in s u r an ce ,   an d   m a n u f ac t u r in g   [ 1 ] [ 3 ] .   E ar ly   s tu d ies  p r im ar ily   f o cu s e d   o n   th e   ef f icien c y   g ain s   an d   co s r ed u ctio n s   ac h i ev ab le  th r o u g h   R PA.  Ho wev er ,   as  p r ac tical  d ep lo y m en ts   ex p an d ed ,   r esear ch er s   b eg an   to   h ig h lig h a   cr itical  s h o r tco m in g tr a d itio n al  R PA  s y s tem s   s tr u g g le  with   e x ce p ti o n   h an d lin g   wh e n   co n f r o n ted   with   d y n am ic  a n d   u n f o r eseen   s ce n ar io s   [ 4 ] [ 6 ] .   s ig n if ican t p o r tio n   o f   th lit er atu r u n d er s co r es th ch alle n g es p o s ed   b y   ex ce p tio n s r an g in g   f r o m   u n ex p ec te d   u s er   in ter f ac ch a n g es  to   v ar iatio n s   in   b u s in ess   lo g ic th at  ca n   h alt  au to m at ed   wo r k f lo ws  an d   n ec ess itate  co s tly   h u m an   in ter v en tio n .   T h ese  ch allen g es   h av s p u r r ed   ef f o r ts   to   in teg r ate  in tellig en s u p er v is o r y   m ec h a n is m s   in to   R PA   s y s tem s .   No tab ly ,   r ec en r esear ch   h as  p r o p o s ed   lev er ag in g   a d v an ce d   n atu r al  lan g u ag e   p r o ce s s in g   tech n iq u es  to   b r id g e   th is   g a p .   J ain   et   a l .   [ 1 6 ]   an d   C h e n   et  a l .   [ 1 7 ]   h a v e   d em o n s tr ated   th at  L L Ms  ca n   b ef f ec tiv ely   em p l o y ed   t o   b o th   d etec an d   r eso lv e x ce p tio n s ,   th er eb y   m in im izin g   th n ee d   f o r   h u m an   o v er s ig h t.  C o m p lem en t in g   th is   ap p r o ac h ,   th Gr ap h R AG  f r am ewo r k   in tr o d u ce d   b y   E d g et  a l [ 1 4 ]   em p lo y s   g r ap h - b ased   r ep r es en tatio n s   o f   wo r k f lo ws  to   en h an ce   th c o n tex tu al   u n d er s tan d i n g   o f   L L Ms,  en ab l in g   m o r e   p r ec is er r o r   lo ca liza tio n   an d   r eso lu tio n .   W h i l L L Ms   o f f e r   s i g n i f i c a n a d v a n t a g e s   i n   t e r m s   o f   c o g n i t iv e   c a p a b i li t i es ,   t h e i r   i n t e g r a ti o n   i n t o   R PA  w o r k f l o w s   r a is es   c o n c e r n s   r e la t e d   t o   c o m p u t a t i o n a l   o v e r h e ad   a n d   e n e r g y   e f f i c i e n c y   [ 1 8 ] ,   [ 1 9 ] .   C o n s e q u e n t l y ,   t h e   l it e r a t u r e   e m p h as i z es   t h e   i m p o r t a n c e   o f   d e v e l o p i n g   s t r a te g i e s   f o r   t h e   e x p e d ie n t   i n v o c a t i o n   o f     LLMs e n s u r i n g   t h at   t h e s e   m o d e l s   a r e   a ct i v a t e d   o n l y   w h e n   n e c e s s a r y t o   b a la n c e   p e r f o r m a n c e   w i t h   r es o u r c u t i l i z at i o n .   A d d it i o n a ll y ,   t h e   co n c e p t   o f   h y p e r   a u t o m a ti o n ,   as   d is c u s s e d   i n   i n d u s t r y   r e p o r t s   [ 1 5 ] ,   a d v o c a t e s   f o r   t h e   u n i f i c at i o n   o f   R PA   wi t h   a d v a n c e d   A I   t ec h n i q u e s .   T h i s   i n te g r a t e d   a p p r o a c h   n o t   o n l y   e n h a n c e s   t h e   r es i li e n c o f   a u t o m a t i o n   w o r k f l o w s   b u t   a l s o   a d d r e s s e s   e m e r g i n g   c h a lle n g e s   s u c h   a s   L L M   h a l l u ci n a ti o n   a n d   t h e   n e e d   f o r   r o b u s t   g u a r d r a i l s   t o   m a i n t a i n   o u t p u t   r e l i a b i li t y .   Fi g u r e   1   s h o w s   a   c o m p a r is o n   b e t w e e n   v a r i o u s   m o d e l s   a n d   T a b l e   1   s h o w c as es   p o p u l a r   L L M s   a n d   r e l e v a n t   p a r a m e t e r s   f o r   t h e i r   u s e   as   a g e n ts .   Ho wev er ,   th e   n ewly   em er g e n f ield   o f   h allu ci n atio n   [ 2 0 ] ,   [ 2 1 ]   i n   L L Ms  wh ich   ar e   p r o n o u n ce d   in   Gr ap h R AG   [ 2 2 ]   ev en   with   th u s o f   SOTA   m o d els  lik GPT - 5   [ 2 3 ] .   B ey o n d   ex ce p tio n   h an d lin g ,   r ec e n t   ad v an ce s   in   ag e n tic  AI   h av e   ex p an d e d   th ca p ab ilit ies  o f   R PA  s y s tem s .   Ag en tic  L L Ms,  s u ch   as  th o s e   d is cu s s ed   b y   Mc I n to s h   et  a l .   [ 2 4 ]   a n d   B r o h et  a l .   [ 2 5 ] ,   e m p h asize  au to n o m o u s   d ec is io n - m ak in g ,   d y n am ic   ad ap tatio n ,   an d   m u lti - s tep   r ea s o n in g cr itical  asp ec ts   f o r   en s u r in g   r o b u s an d   s elf - h ea lin g   au to m atio n .   Ad d itio n ally ,   th e   OSW o r ld   b e n ch m ar k   in tr o d u ce d   b y   Xie  et   a l [ 2 6 ]   ev alu ates  L L M   ag en t s   in   r ea l - wo r l d   task   ex ec u tio n ,   h ig h lig h ti n g   k e y   c h allen g es  in   en s u r in g   r eliab ili ty   an d   ef f icien cy .   T h ese  d ev el o p m en ts   alig n   with   Evaluation Warning : The document was created with Spire.PDF for Python.
I AE I n J   R o b   &   A u to m   I SS N:   2722 - 2 5 8 6       C a s ca d in g   a u to m a ta   to   imp r o ve   efficien cy   o f la r g la n g u a g mo d els a g en ts   … ( Hri s h ikesh   K .   Ha r ita s )   151   th b r o a d er   tr e n d   o f   m u lti - ag en co llab o r atio n ,   wh er e   L L M - p o wer ed   a g en ts   o p e r ate  in   s y n er g y   to   h a n d le   ex ce p tio n s ,   o p tim ize  wo r k f l o ws,  an d   im p r o v o v er all  task   c o m p letio n   r ates   [ 2 7 ] ,   [ 2 8 ] .           Fig u r 1 .   Sp ec tr u m   o f   au to m at p r o p o s ed   with   r esp ec t to   t h eir   ass o ciate d   lan g u ag c o m p r e h en s io n   s y s tem       T ab le  1 .   C o m p a r in g   th e   p o p u l ar   0 - s h o t L L Ms f o r   ag e n tic  an d   f u n ctio n al  AI   M o d e l     C o n t e x t   l e n g t h   S t r e n g t h s f o r   a g e n t i c   a p p l i c a t i o n   H a l l u c i n a t i o n   r a t e   [ 3 1 ]     C o s t   o f   i n p u t   t o k e n   ( 1 K   t o k e n s)   C o s t   o f   o u t p u t   t o k e n   ( 1 K   t o k e n s)   G o o g l e   G e m i n i     3 2 , 0 0 0   C o m p l e x   r e a so n i n g   t a s k s   7 . 7   $ 0 . 0 0 0 2 5   $ 0 . 0 0 0 5   A n t h r o p i c   C l a u d e   3 . 5   S o n n e t   1 0 0 , 0 0 0   G e n e r a l ,   k n o w l e d g e   b a se d   a n d   d e c o m p o si t i o n a l   r e a s o n i n g   4 . 6   $ 0 . 0 0 3   $ 0 . 0 0 9   O p e n A I   G P T - Tu r b o   1 2 8 , 0 0 0   M u l t i - mo d a l   c a p a b i l i t i e   1 . 7   $ 0 . 0 3   $ 0 . 0 6   M e t a   Ll a ma  3   ( 7 0 B )   1 2 8 , 0 0 0   I n st r u c t i o n   f l o w   a n d   me d i c a l   r e a so n i n g   4 . 1   $ 0 . 0 0 2   $ 0 . 0 0 4   M i s t r a l   7 B   3 2 , 0 0 0   K n o w l e d g e   b a s e d ,   g e n e r a l   i n t e l l i g e n c e   a n d   p h y s i c a l   k n o w l e d g e   7 . 5   $ 0 . 0 0 0 3   $ 0 . 0 0 0 3   D e e p S e e k - V3   3 2 , 0 0 0   M a t h e ma t i c a l   r e a s o n i n g   a n d   c o m p e t i t i v e   p r o g r a mm i n g   3 . 9   $ 0 . 0 0 0 7   $ 0 . 0 0 1 1       p ar ticu lar ly   r elev a n p a r ad i g m   in   th is   co n tex is   ze r o - s h o t   lear n in g   ( Z SL) ,   wh ich   en a b le s   L L Ms  to   g en er alize   n ew  au to m atio n   s ce n ar io s   with o u t ta s k - s p ec if ic  r etr ain in g   [ 2 9 ] .   B r o wn   et  a l [ 8 ]   d em o n s tr ated   h o lar g e - s ca le  p r e - tr ai n ed   m o d e ls   ca n   ex tr ap o late  p atter n s   f r o m   lim ited   c o n tex t,   s ig n if ican tly   im p r o v in g   ex ce p tio n   h an d lin g   in   d y n am ic  en v ir o n m en ts .   Fu r th er m o r e,   W an g   et  a l [ 3 0 ]   p r o p o s ed   E DC E W - L L M,   a   lar g lan g u ag e - b ased   ap p r o ac h   f o r   ef f ec tiv er r o r   d etec tio n   an d   co r r ec tio n ,   s h o win g   its   p o ten tial in   en h an cin g   Gr ap h R AG - b ased   ex ce p tio n - h an d lin g   m ec h an is m s .   C o llectiv ely ,   th ese  s tu d ies  illu s tr ate  clea r   tr ajec to r y   to war d   m er g i n g   tr a d itio n al  R PA  s y s tem s   with   m o d er n   AI   m eth o d o lo g ies.  Desp ite  th p r o g r ess   m ad e,   co m p r eh en s iv f r am ewo r k   th at  s ea m less ly   in teg r ates   th s tr en g th s   o f   b o th   ap p r o a ch es  wh ile  m itig atin g   th eir   i n d iv id u al  lim itatio n s   r em ain s   an   o p en   r esear c h   ch allen g e.   T h wo r k   p r esen ted   in   th is   p ap er   aim s   to   f ill   th is   g ap   b y   in tr o d u cin g   Gr ap h R AG - b ased   ex ce p tio n   h an d lin g   m ec h a n is m   th at  ex p e d ites   L L in v o ca tio n ,   th e r eb y   im p r o v in g   b o th   th r o b u s tn ess   an d   ef f icien cy   o f   R PA w o r k f lo ws.     Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 7 2 2 - 2 5 8 6   I AE I n J   R o b   &   A u to m Vo l .   1 5 ,   No .   1 Ma r ch   20 2 6 :   1 49 - 1 61   152   3.   M E T H O D   Ou r   wo r k   f in d s   th b alan ce   b etwe en   th tem p o r al   an d   en er g y   e f f icien cy   o f f e r ed   b y   R PA  an d   th e   awa r en ess   an d   k n o wled g th at   m o d er n   lar g e - s ca le  d ee p   lear n in g   m o d els s u ch   as L L Ms o f f er .   W ac h iev th is   b y   ca llin g   u p o n   L L Ms/ v is u al  lan g u ag m o d els  ( VL Ms)   ex p ed ien tly .   Her e,   we  n o te  th at  th L L Ms  p r o p o s ed   ar n o t   s p ec ially   tr ain e d /f in e - t u n ed   f o r   th task   o f   ex ce p tio n   h an d lin g .   I n s tead ,   we  ex p er im en with   o f f - th e - s h elf   m o d els  an d   p r o m p th e m   ap p r o p r iately   to   s p ec if y   th e ir   p o s itio n   in   th p ip elin a n d   r eg u late  th f o r m a t   o f   th eir   o u tp u t.   T h is   ass u m p tio n   is   s u b s tan tiated   b y   L L Ms b ein g   wid ely   u s ed   as z er o - s h o ag en ts   [ 8 ] .   Sm all  lan g u ag m o d els  ( SLM s )   ca n   s er v as  m o r ef f icien s u p er v is o r s   o r   ca n   b ca s ca d ed   with   L L Ms  wh en   tr ain ed   ap p r o p r i ately .   Ob s tr u ctio n s   to   th R PA  wo r k f lo h a v b ee n   b r o a d ly   ca teg o r ized   in t o   i)   s y n tactic  ex ce p tio n s   b y   i n ad eq u ately   p r o g r am m ed   b o ts   ( s in ce   ex ce p tio n s   ar u n p r e d ictab le  an d   o f ten   u n p r ec e d en ted ) ,   ii)   s y n tactic  e x ce p tio n s   f r o m   u n ex p ec ted   an d   in co n g r u o u s   in p u ts   p r o v id e d ,   an d   iii)   in co r r ec t   o u tp u ts   p r o v id e d   as  r esu lt  o f   am b ig u ity   in   in p u f o r m ats.  I n   th 1 s an d   2 n d   ca s es,  L L M s   ar ca lled   u p o n   if   an d   o n ly   if   th wo r k f lo th r o ws  an   er r o r ,   wh ile  f o r   ca s 3 ,   we  u s g atin g   m ec h an is m   to   d eter m in wh eth er   th s itu atio n   war r an ts   an   L L M   ca ll.   Ou r   wo r k f lo p r o v id es  an   ad v an tag in   en er g y   an d   tem p o r al  ef f icien cy ,   s in ce   s er v in g   L L Ms  h as   b ee n   to p ic  o f   ac tiv r esear ch   [ 1 8 ]   an d   in f e r en ce   tim es a r in co m p ar a b ly   wo r s co m p ar e d   to   R P ( R PA b o t s   ar a   h ar d   co m p u tin g   task ) .   A d d itio n ally ,   L L Ms  co n s u m g ar g an tu an   am o u n ts   o f   en er g y ,   m ak in g   th eir   u s ag f o r   R PA w o r k f lo ws at  lar g s c ales e n v ir o n m e n tally   ir r esp o n s ib le  [ 1 9 ] .   Ho wev er ,   L L Ms  p r esen h u m an - lik in tellig en ce   an d   aw ar en ess   f o r   s p ec if ic  ca s es  ( li k th o n es  d ea lt  with   in   R PA  d o m ain s ) .   L L Ms  p r o v e   ex ce p tio n al  at   r eso lv in g   r ea l - wo r ld   ex ce p tio n s   en co u n ter ed   b y   R PA  as  d em o n s tr ated   in   o u r   r esu lts .   Ou r   wo r k f lo p r o v id es  r ed u ctio n   in   L L M   ca lls   an d   p r o p o r tio n ate   r ed u ctio n   in   e n er g y   u s ag a n d   in f er e n ce   tim es.  T h r ed u ctio n   in   u s ag is   in v er s ely   d ep en d e n o n   th co m p lex ity   o f   th b o t s   wo r k f l o am o n g s t o t h er   f ac to r s .   R PA  wo r k f lo ca n   b r ep r esen ted   as  f ea tu r e - r ic h   d ir ec t ed   g r ap h .   Ma n y   R PA  d esig n   s o f twar e s u ch   as  UiPath ,   o f f er   b u ilt - in   to o ls   to   c o n v er t   th e   wo r k f lo to   a   J SON  f ile.   As  p ar o f   t h p r e - p r o ce s s in g ,   th J SON   f ile  i s   co n v er ted   in to   g r ap h   wh ich   s er v es  as  t h in p u to   Gr ap h R AG.   Gr ap h R AG  en ab les  th e   h an d lin g   o f   co m p lex   wo r k f lo ws  an d   allo ws  f o r   s tr u ctu r ed   an aly s is   wh en   an   er r o r   o cc u r s   b y   co n s tr u ctin g   a   tr ee   o f   in f o r m atio n   u p o n   th e   g r ap h   o f   th wo r k f lo w.   Fig u r e   2   d ep icts   th p r o p o s ed   p ip elin e   f o r   ex ce p tio n   h a n d lin g .   W h en   an   R PA  b o e n c o u n ter s   an   er r o r ,   a n   L L is   ca lled   u p o n   p r io r   to   h u m a n   in ter v e n tio n .   F ir s t,  th in ter m ed iate  o u t p u ts   o f   th v ar io u s   b lo ck s   o f   th e   wo r k f lo w   ( s u ch   as  co n d itio n al  s tatem en ts   an d   iter ab le s )   ar im p u ted   in to   th e   p r e v io u s ly   p r e p ar ed   g r a p h   o f   th w o r k f l o w.   T h e n ,   we  p r ep ar a   p r o m p b y   co m b in in g th er r o r   m ess ag th b lo ck   d u r in g   wh o s e   ex ec u tio n   th e r r o r   o cc u r r e d   p r ed ef i n ed   p r o m p f o r   o u r   p ip elin e .   T h p r o m p ts   wer e   tailo r ed   to   e n s u r e   p r ec is an d   co n tex tu al  r esp o n s es  r ath er   th an   g en er ic  tr o u b l esh o o tin g   s tep s .   B elo ar th p r o m p ts   u s ed   f o r   th r esp ec tiv u s ca s es .           Fig u r e   2 .   E x ce p tio n   h an d lin g   p ip elin e       3 . 1 .     E nh a ncing   do cum ent   v a lid a t io in K YC   T h p r o m p in   th is   ca s is ,   Yo u   ar r o b o s u p er v is o r   ta s k ed   with   f ix in g   wo r k f lo er r o r s   d u r in g   d ep lo y m e n t.  W h en   g iv en   q u er y   d escr ib in g   a n   er r o r   at   s p ec if ic  s tep   an d   its   in p u s ch e m a,   p r o v id e   clea r ,   s p ec if ic  s o lu tio n ,   n o g en er ic  o n e.   T h is s u is   n o d u e   to   p o o r   p r o g r am m in g   b u a   m in o r   d is cr ep an cy   b etwe en   th p r o g r am m ed   lo g ic  an d   g r o u n d   tr u th .   An aly ze   th d if f er en ce s   b etwe en   th e   d o cu m en ts   in   th e   wo r k f lo an d   s u g g est  h o t o   ad ap th cu r r en wo r k f lo to   f ix   th is s u wh er th s y s tem   in co r r ec tly   id en tifie s   two   p eo p le  as d if f er en t.  E x p lain   w h y   an d   h o th er r o r   o cc u r r e d .     3. 2   Do cu m ent   re j ec t io a na ly s is   T h p r o m p t   in   t h is   ca s is ,   As  s u p er v is o r ,   y o u r   task   is   to   ex p lain   d ep lo y m en er r o r s   b ased   o n   th e   in p u I   p r o v i d e.   Yo u r   r esp o n s s h o u ld   b s p ec if ic  t o   th er r o r   d escr ip tio n   a n d   in p u s ch e m a,   av o id in g   g e n er ic   f ix es.  T h e   is s u is   lik ely   d u t o   m is m atch   b etwe en   th p r o g r am m ed   lo g ic   an d   th ac t u al   d ata.   I n   t h is   ca s e,   th er r o r   Ad d   Data   R o w:  Ob j ec r ef er en ce   n o s et  to   an   in s t an ce   o f   an   o b ject   m a y   o cc u r   b ec au s th d etails  Evaluation Warning : The document was created with Spire.PDF for Python.
I AE I n J   R o b   &   A u to m   I SS N:   2722 - 2 5 8 6       C a s ca d in g   a u to m a ta   to   imp r o ve   efficien cy   o f la r g la n g u a g mo d els a g en ts   … ( Hri s h ikesh   K .   Ha r ita s )   153   in   th PDF  ar n o b ein g   co r r ec tly   ex tr ac te d   b y   th e   r eg e x ,   ev e n   th o u g h   th e   PDF  co n tain s   th r eq u ir ed   in f o r m atio n .   T h w o r k f l o an d   ex tr ac ted   PDF tex t a r g iv en   f o r   r e v iew.   T h ese  p r o m p ts   wer in s tr u m en tal  in   en s u r in g   th at  Gr a p h R AG  p r o v id ed   tar g eted   in s ig h ts   in to   wo r k f lo er r o r s ,   allo win g   u s   to   r ef in o u r   KYC  d o cu m en v alid atio n   an d   r ejec tio n   an a ly s is   p r o ce s s es.  B y   lev er ag in g   Gr ap h R AG s   r ea s o n in g   ca p ab ilit ies,  we  wer e   a b le  to   b r id g e   d is cr ep a n cies  b e twee n   p r o g r am m e d   lo g ic  an d   g r o u n d   t r u th ,   im p r o v in g   th o v er all  ac cu r ac y   a n d   r eliab ilit y   o f   th s y s tem .   R eg ex   is   ap p lied   in   th e   in itial  d ata  v alid atio n   s tag e,   w h er n am es  an d   ad d r ess es  in   KYC  v er if icatio n   ar s tan d ar d ized   u s in g   p r ed e f in ed   p atter n s   ( e. g . ,   en s u r in g   J o h n   S   a n d   J o h n   Sm ith   ar e   m atch ed .   Similar ly ,   d o cu m e n r ejec tio n   ca s es  in   th in s u r an c wo r k f lo u s r eg ex - b ased   p a r s in g   to   d e tect  m is s in g   f ield s ,   in co r r ec f o r m ats,  o r   b l u r r y   s ca n s   b ef o r escalatin g   to   a n   L L f o r   in tellig en r ea s o n in g .   Ad d itio n ally ,   t h wo r k f lo g r a p h   tr av e r s al  s te p   ca n   in co r p o r ate  f in ite - s tate   au to m ata  ( DFA/NFA)   r u les   to   id en tify   k n o wn   f ailu r p o in ts   d eter m in is tically .   B y   in teg r atin g   r eg ex - b ased   r u le  en g in es  as  p r ep r o ce s s in g   lay er   b ef o r L L M   ca lls ,   we  cr ea te  m u lti - tier   a u to m ata  ca s ca d e,   wh er d eter m in is tic  au to m ata  ( DFAs )   h a n d le  s im p le  er r o r s ,   lig h tweig h s tatis tical  m o d els  d eter m in f u zz y   m atch es,   an d   L L Ms  s er v e   as  th e   f in al   f allb ac k   f o r   a m b ig u o u s   ex ce p tio n s .   T h is   wo u l d   im p r o v e f f icien cy   b y   en s u r in g   L L Ms  ar in v o k e d   o n ly   wh en   tr u l y   n ec ess ar y ,   o p tim izin g   b o th   en e r g y   c o n s u m p tio n   an d   p r o ce s s in g   tim e.   T h p r o m p is   f ed   in to   th g lo b al  s ea r ch   s y s tem   o f   Gr ap h R AG  [ 1 4 ]   d esig n ed   to   r etr iev r elev an in f o r m atio n   an d   co n tex t f r o m   th L L M s   in tr in s ic  k n o wled g o f   th d o m ain   a n d   th s tate  o f   th p r o ce s s   its elf .   T h o u t p u t d escr ib es  th lo ca t io n   an d   n atu r o f   th e   er r o r   an d   o f f er s   f ix es.  Up o n   a   f ailu r t o   lo ca te/  r eso lv t h er r o r ,   t h wo r k f lo s ig n als th n ee d   f o r   h u m an   i n ter v en tio n .     T h o u tp u t   o f   Gr ap h R AG  ( i. e. ,   er r o r   r eso lu tio n   in f o r m atio n )   c o m b in e d   with   th e   J SON  f ile  o f   th e   wo r k f lo w   is   f ed   in to   an   L L ( n o v ia  th e   Gr ap h R AG  f r am e wo r k ) .   On ce   t h L L M   h as  p r o ce s s ed   th in p u t,  it   g en er ates  th co r r ec ted   s ec tio n   o f   th J SON  f ile.   T h en ,   u tili zin g   tr ad itio n al  s tr in g - m atch i n g   tech n iq u es,  th e   co r r ec ted   s ec tio n s   ar e   p lace d   in to   th e   J SON  f ile.   T h e   L L M   is   ask ed   t o   o u tp u t   o n l y   th e   c o r r ec ted   s ec tio n s   o f   th f r am ew o r k   in   th i n ter est  o f   r e d u cin g   th e   n u m b er   o f   to k en s   g en er ate d .   Af te r   th e   co r r e ctio n s   ar m ad e,   th u p d ated   wo r k f lo is   au to m atica lly   d ep lo y ed ,   allo win g   th e   p r o ce s s   to   r esu m with o u t h n ee d   f o r   h u m a n   in ter v en tio n .   W h ile  th af o r em en tio n ed   p ip elin co v er s   th 1 s an d   2 n d   c ateg o r y   o f   o b s tr u ctio n s ,   th e   3 r d   ca teg o r y   war r an ts   m o r e   ca s s p ec if ic   ap p r o ac h .   I n   g en er al,   wh en   t h wo r k f lo w   o r   s u b   p r o ce s s   with in   th w o r k f l o p r o v id es  n e g ativ o u t p u ( i n   th ca s o f   f alse  n eg ativ es  b ein g   p r o m in en t ) ,   g atin g   m ec h an is m   ( s u ch   as  lig h ter   m ac h in lear n in g   m o d el  o r   h an d wr itten   al g o r ith m )   ca n   ca ll  u p o n   th L L if   f alse  n eg ativ is   s u s p ec ted .   E x am p le  # 1   in   s ec t io n   4   d etails o u r   ap p r o ac h   to   t h is   ca teg o r y   o f   o b s tr u ctio n .     C er tain   ca s es  o f   th e   th ir d   ca te g o r y   ( as  e x em p lifie d   b elo w)   c an   b e   d etec ted   p u r ely   b y   m ea s u r in g   th e   ex ten o f   d e v iatio n   f r o m   th m ea n   o f   v al u es  p r o d u ce d   in te r m ed iately   in   th au t o m atio n   p ip elin e.   T h m ea n   an d   s tan d ar d   d ev iatio n   ca n   e ith er   b e   o b s er v e d   e x p er im en t ally   o r   co n f i g u r e d   m a n u ally   b ased   o n   d o m ai n   k n o wled g e.     I f   th in ter m ed iate  o u tp u ts   ar s tr in g s ,   we  m ay   u s n o n - d a ta  d r iv en   em b e d d in g   tech n iq u es  s u ch   as   TF - I DF  v ec to r izatio n .   On ce   t h T F - I DF  v ec to r s   h a v b ee n   cr ea ted ,   C o s in Similar ity   is   u s ed   to   c o m p ar e   th v ec to r s   f o r   d if f e r en f ield s .   C o s in Similar ity   ca lcu lates  th an g le  b etwe en   two   v ec to r s   an d   ass ig n s   s co r e   r an g in g   f r o m   0   to   1 ,   with   1   in d icatin g   p er f ec t   s im ilar ity   an d   0   in d icatin g   n o   s im ilar ity .   T h is   s co r q u an tifie s   th s im ilar ity   o f   two   f ield s ,   e v en   if   th ey   ar e   n o t   id en tical,   b y   f o cu s in g   o n   th e   r elatio n s h i p   b etwe en   th ter m s   in   ea ch .   T h th r esh o ld   is   esta b lis h ed   th r o u g h   ex p e r im en tati o n   an d   an al y s is   o f   v ar i o u s   d o cu m en ts we  f in e - tu n an d   s et  th th r esh o ld   to   alig n   with   th wo r k f lo w s   p r ac tical  n ee d s .   T h is   ap p r o ac h   en ab les  th s y s tem   to   ef f icien tly   au to m ate  d o c u m e n v er if icatio n ,   f lag g in g   o n ly   ca s es  th at  f all  b elo th t h r esh o ld   f o r   f u r th er   an aly s is ,   im p r o v in g   th p r o ce s s s   s p ee d   an d   s ca lab ilit y .     3 . 3 .     M a t hema t ica f o rm ula t i o n   T o   f o r m alize   our   p ip elin e,   c o n s id er   th R PA w o r k f lo as a   d ir ec ted   g r ap h   = ( , ) ,   wh er e:   = { 1 , 2 , ,  }   ar th lo g ical  s tep s   ( d ec is io n   b lo ck s ,   ac tio n s )   ×   ar th ex ec u tio n   ed g es c ap tu r in g   f lo w.   W h en   an   ex ce p tio n   o cc u r s   at  node   v k ,   we  b u ild   s u b g r ap h   co n tex t     = ( , ) ,   = { : ( , ) } ,     wh er ( , )   is   g r ap h   d is tan ce   an d     co n tex t w in d o s ize.   Def in p r o m p t c o n s tr u ctio n   f u n ctio n     = (   , , )     Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 7 2 2 - 2 5 8 6   I AE I n J   R o b   &   A u to m Vo l .   1 5 ,   No .   1 Ma r ch   20 2 6 :   1 49 - 1 61   154   wh er ϕ   co n ca ten ates th er r o r   m ess ag e,   n o d m etad ata  an d   th s er ialized   g r ap h   co n te x t.   T h Gr ap h R AG  r etr iev al  m o d u le  s elec ts   to p - m   r elev an n o d es b y   s co r in g   f u n cti o n :   ( , ) =  ( , ) +  ( )     wh er e   is   th em b ed d in g   o f   n o d v i,   s im ( , )   is   co s in s im i lar ity   in   em b ed d in g   s p ac e,   d eg   ( )   is   th n o d e - d eg r ee   b ias,   λ  b alan ce s   co n tex t v s .   s tr u ctu r al  im p o r tan ce .   T h L L r esp o n s R =L L M( P)  o u tp u ts   co r r ec ted   s u b g r a p h   = ( , ) . W in teg r ate  co r r ec tio n s   v ia  s tr in g   p atch in g   in to   th o r ig in al  J SON:  = .     3 . 4 .     P s eudo co de   Hav in g   estab lis h ed   m ath em atica f o r m u latio n ,   th p i p elin e   ca n   b tr an s lated   in to   p r o c ed u r th at  r ef lects  h o th s y s tem   b eh av es  d u r in g   r u n tim e.   Alg o r ith m   1   d ef in es  th f u ll  ex ec u tio n   lo o p   o f   th R PA  b o t.   s h o win g   h o th wo r k f lo a d v an ce s ,   d etec ts   ex ce p tio n s ,   co n s tr u cts  co n tex t,  r etr iev es  r elev an in f o r m atio n   th r o u g h   Gr a p h R AG,   an d   ap p lies   L L g en er ate d   co r r ec t io n s   b ef o r co n tin u in g   ex ec u tio n .   Alg o r ith m   2   o u tlin es  th r etr iev al  an d   d e cisi o n   lo g ic  u s ed   b y   th ag e n tic  L L s u p er v is o r   to   s co r wo r k f lo n o d es,  ass em b le  co n tex tu al  ev id e n ce ,   an d   g e n er ate  an   ac ti o n   p la n   th r o u g h   th L L M.     Alg o r ith m   1 .   C ascad in g Au to m ataWit h Gr ap h R AG( G,   th r esh o ld   τ )   Input: RPA graph G, gating threshold τ   Output: Updated graph G      for each execution step v_k in G do     try        execute(v_k)     catch error e at node v_k:        // Preprocess graph context          G_k ← extractSubgraph(G, v_k, window=ℓ)        // Build prompt        P ← buildPrompt(e, v_k, G_k)        // Retrieve relevant graph context          C ← GraphRAG.retrieve(G_k, P, top_m)        // Query LLM for correction        ΔG_k ← LLM.resolveExceptions(P, C)        // Patch workflow        G ← applyPatch(G, ΔG_k)        resume execution at v_k      end for      return G     Alg o r ith m   2 .   Ag en ticL L MSu p er v is o r ( P,  em b e d d in g s )   Input: prompt P, node embeddings embeddings   Output: action plan A      // Structured retrieval      scores ← [sim(e_i, P) + λ deg(i) for i in nodes]      C ← selectTop(scores, m)      // LLM planning      A ← LLM.generatePlan(P, context=C)      return A       4.   I M P L E M E NT A T I O A ND  RE SU L T S   T h p r o p o s ed   p i p elin was  im p lem en ted   o n   two   r ea w o r ld   s ce n a r io s   f r o m   t h b an k in g   a n d   in s u r an ce   s ec to r s   wh er R P is   s ee in g   m ass iv ad o p tio n   [ 3 ] .   Ou r   wo r k   is   av ailab le  o n   GitHu b   f o r   f u ll   r ep r o d u cib ilit y .   Fo r   i d en tifie d   s ce n ar io s ,   au to m ata  wer e   d ev elo p e d   u s in g   UiPath .   Mic r o s o f t s   o r ig in al   im p lem en tatio n   o f   Gr ap h R AG  with   GPT - 4 o   th r o u g h   Op en A PI  was u s ed .     4 . 1 .     E x a m ple 1 :   enha ncing   do cum ent   v a lid a t io in K Y C   I n   in d u s tr ies lik b an k in g   an d   f in an ce ,   au to m atin g   Kn o Yo u r   C u s to m er   ( KYC)  p r o ce s s es   is   cr itica l   f o r   co m p lian ce   a n d   f r au d   p r ev en tio n .   Ho wev er ,   d is cr ep a n cies  in   cu s to m er   in f o r m atio n   ac r o s s   d o cu m en ts   ca u s ex ce p tio n s   an d   p o s ch allen g es  f o r   tr ad itio n al  R PA  s y s tem s .   E v en   m in o r   v ar iatio n s   lik ex p an s io n   o r   co n tr ac tio n   o f   s u r n am es  o r   m id d le  n am es in   o u r   in p u ts   wh ile  im p lem en tin g   KYC   v er if icatio n   p r o ce s s   s u ch   as  J o h n   S   o n   o n d o cu m en an d   J o h n   Sm ith   o n   an o th er ,   o r   d if f e r en ce s   in   ad d r es s   d etails  lik 123  E lm   Stre et   v er s u s   1 2 3   E lm   ( f o r m e r ly   B ak er   Stre et)   Stre et,   Op p .   C af f Ho u s e     ca u s e d   th au to m atio n   to   Evaluation Warning : The document was created with Spire.PDF for Python.
I AE I n J   R o b   &   A u to m   I SS N:   2722 - 2 5 8 6       C a s ca d in g   a u to m a ta   to   imp r o ve   efficien cy   o f la r g la n g u a g mo d els a g en ts   … ( Hri s h ikesh   K .   Ha r ita s )   155   m is in ter p r et  th em   as  s ep ar ate  in d iv id u als.  T h is   r esu lts   in   m an u al  in ter v en tio n ,   d im i n is h in g   th e   ef f icien cy   o f   th au to m atio n .   T o   o v er c o m th is ,   in teg r atin g   lar g lan g u ag m o d els  ( L L M s )   in to   R PA  wo r k f lo ws  as  im p lem en ted   ca n   d r am atica lly   en h an ce   d o c u m en v alid atio n .   L L Ms,  with   th eir   s o p h is ticated   n atu r al  lan g u ag p r o ce s s in g ,   ca n   in tellig en tly   in ter p r et  s u c h   d is cr ep a n cies  an d   ass ess   wh eth er   th e   d o cu m en ts   r ef er   to   t h s am p er s o n .   Fo r   in s tan ce ,   th ey   d eter m i n th at   J o h n   S   a n d   J o h n   Sm ith   li k ely   b el o n g   to   th e   s am in d i v id u al  b y   a n aly zin g   co n tex tu al  cu es,  s u c h   as a d d r e s s   s im ilar it ies o r   o th er   co r r o b o r atin g   in f o r m atio n .   I n co r p o r atin g   L L Ms  elim in at es  th n ee d   f o r   m an u al  r eso l u tio n   b y   en ab lin g   a u to m ated   s y s tem s   to   ac co u n f o r   t h ese  s u b tle  v ar i atio n s ,   s tr ea m lin in g   th e   KYC  p r o ce s s .   T h is   r esu lts   in   g r ea ter   ac cu r ac y ,   f aster   p r o ce s s in g ,   an d   r e d u ce d   o p er atio n al  b o ttlen ec k s .   R esear ch   h ig h lig h ts   h o d is cr ep an cie s   b etwe en   o f f icial  d o cu m e n ts   f r eq u en tly   lead   t o   f alse  r ejec tio n s   b y   R PA  s y s tem s ,   u n d er s co r in g   t h n e ed   f o r   AI - e n h an ce d   s o lu tio n s   to   m in im ize  s u ch   e r r o r s   an d   en s u r co m p lian ce .   I n   th d o cu m e n v e r if icatio n   wo r k f lo illu s tr ated   in   Fig u r e   3 ,   it  is   cr u cial  to   d eter m i n wh eth er   to   in v o k t h L L M,   esp ec ially   in   s ce n ar io s   wh er n o   er r o r s   ar p r esen a n d   th e   L L i s   b ein g   u s ed   j u s t   s u p er v is o r .   Fre q u e n ca lls   t o   LLM   f o r   o v er s ig h t   ca n   r esu lt  in   s ig n if ica n co m p u t atio n al  o v er h ea d ,   u n d er m i n in g   th e   ef f icien cy   o f   th e   au t o m atio n   p r o ce s s .   T o   ad d r ess   th is   ch allen g e,   a   s im ilar ity   s co r e   is   ca lcu lated .   I n   o u r   ex am p le,   w u s T F - I DF  v ec to r izer   to   e m b ed   th ca n d id ate  d o c u m en t s ,   co s in s im ilar ity   b etwe en   th v ec to r s   p r o d u ce s   s co r e.   C ases   wh er th s im ilar ity   s co r is   ab o v t h r esh o ld   ( d eter m i n ed   ex p er im en tally )   in d icate   v er if icatio n   m is m atch   r ath e r   t h an   s u b s tan tiv d is cr ep an c y ,   th L L is   n o in v o k e d ,   th er e b y   o p tim izin g   r eso u r ce   u tili za tio n   wh ile  m ain tain in g   th in teg r ity   o f   th wo r k f lo w.           Fig u r 3 .   E x am p le  wo r k f lo f o r   ef f icien t L L M   s u p er v is io n   t o   co m b at  u n p r ed ictab ly   v ar y in g   in p u t       4 . 2 .     E x a m ple 2 :   do cu m ent   r ej ec t io n a na ly s is   I n   au t o m ated   p r o ce s s es  th at  r e q u ir d o cu m e n u p lo ad s s u c h   as  in s u r a n ce   claim s ,   l o an   a p p licatio n s ,   o r   r eg u lato r y   f ilin g s d o cu m en r ejec tio n   is   co m m o n   h u r d le.   T h ese  r ejec tio n s   ca n   o cc u r   f o r   v a r io u s   r ea s o n s ,   in clu d in g   m is s in g   i n f o r m atio n ,   in co r r ec f o r m ats,  o r   p o o r   d o cu m en q u ality .   T r ad itio n al  R PA  s y s tem s   o f ten   r ejec d o cu m e n ts   with o u p r o v i d in g   d etail ed   r ea s o n s ,   leav in g   u s er s   o r   ad m in is tr ato r s   to   in v esti g ate  th is s u m an u ally ,   wh ich   d im in is h es th ef f ec tiv en ess   o f   au to m atio n .   I n   o u r   s tu d y ,   we  g en er ated   t wo   k n o wled g e   g r a p h s   to   en h an ce   d o cu m en t   v alid atio n   a n d   r ejec tio n   an aly s is   with in   th KYC  wo r k f lo w.   T h ese  k n o wled g g r ap h s ,   s h o wn   in   Fig u r es   4   a n d   5 ,   wer co n s tr u cted   to   ca p tu r r elatio n s h ip s   b etwe en   d o c u m en attr i b u tes,  wo r k f lo er r o r s ,   an d   co r r ec tiv ac tio n s ,   en ab lin g   m o r e   p r ec is is s u r eso lu tio n .   B y   lev er ag in g   t h ese  s tr u ctu r ed   r ep r esen tatio n s ,   we  im p r o v ed   th s y s tem s   ab ilit y   to   d etec t a n d   ad d r ess   d is cr ep an ci es b etwe en   p r o g r am m ed   lo g ic  an d   r ea l - wo r ld   d ata.   An   id ea s o lu tio n   is   to   in te g r ate  L L Ms  in to   th r ejec tio n   a n aly s is   p r o ce s s ,   en ab lin g   t h s y s tem   to   p r o v id a n   in tellig en t,  clea r   ex p lan atio n   f o r   wh y   d o c u m e n was  r ejec ted .   Fo r   in s tan ce ,   in   th ca s o f   an   in s u r an ce   claim ,   th in p u is   b lu r r y   p h o to   o f   r eq u ir ed   m ed ical  b ill,  th L L ex am in es  th d o cu m en an d   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 7 2 2 - 2 5 8 6   I AE I n J   R o b   &   A u to m Vo l .   1 5 ,   No .   1 Ma r ch   20 2 6 :   1 49 - 1 61   156   id en tifie s   th at  th r ejec tio n   is   d u to   its   u n r ea d ab le  o r   b l u r r y   n atu r e.   T h L L th en   g e n er a tes  an   ex p lan atio n ,   Do cu m en r ejec ted   d u to   b lu r r in ess ,   r en d er i n g   k ey   in f o r m atio n   ( e. g . ,   in v o ice  n u m b er ,   to tal  am o u n t)   illeg ib le.   T h is   ca p ab ilit y   allo ws  th L L to   n o o n ly   f lag   th is s u b u also   o f f er   s p ec if ic  g u id an ce   f o r   co r r ec tin g   it,  s av in g   b o th   th u s er   an d   ad m in is tr ato r s   tim e.   I elim in ates  g u ess wo r k   f o r   r e aso n s   o f   r ejec tio n ,   m ak in g   th p r o ce s s   m o r e   tr an s p ar en an d   e f f icien t.  Mo r e o v er ,   th is   ap p r o ac h   en s u r es  f aster   r esu b m is s io n s   an d   im p r o v e d   u s er   e x p er ien ce ,   as  u s er s   ar p r o v id e d   with   ac ti o n ab le  f ee d b ac k   o n   h o to   f ix   th p r o b lem   a n d   m ee t th n ec ess ar y   r eq u ir em e n ts .   R esear ch   in to   a u to m ated   d o c u m en p r o ce s s in g   h ig h lig h ts   th f r e q u en t   is s u o f   r ejec tio n s   d u e   to   d o cu m e n q u ality ,   wh ich   ca n   s ig n if ican tly   s lo d o wn   wo r k f lo ws.  T h in teg r atio n   o f   L L Ms  ca n   b r id g th is   g ap   b y   d iag n o s in g   is s u es  s u ch   as  b lu r r in ess   o r   m is s in g   elem en ts   an d   o f f er in g   h u m an - r ea d ab le  ex p lan atio n ,   allo win g   f o r   f aster   co r r ec tio n s   an d   m in im izin g   d elay s   in   p r o ce s s es lik in s u r an ce   claim s   o r   lo an   ap p r o v als.           Fig u r e   4 .   T o k en   u s ag r ed u cti o n : c ascad in g   a u to m ata  v s .   L L ag en ts   f o r   u s e - ca s #1           Fig u r 5 .   I n ter m ed iate  r esu lts   o f   Gr ap h R AG   f o r   d o c u m en t r ejec tio n   an aly s is       Fig u r es  5   a n d   6   p r o v i d an   an aly s is   o f   th t o k en   u s ag a g ai n s er r o r   r ates  f o r   o u r   u s ca s e s .   Her e,   we  ass u m th at  th en er g y   co n s u m p tio n   an d   laten c y   o f   r u le - b as ed   au to m ata  ar in s ig n if ica n co m p ar ed   t o   L L Ms.   Hen ce ,   th e   r ed u ctio n   in   t o k en   u s ag e   is   r ep r esen tativ o f   th e   co m p u tatio n al  ad v a n tag es  o f   o u r   m et h o d .   Fu r th er m o r e ,   Fig u r e   7   illu s tr a tes  th r esu lts   o b tain ed   f r o m   o u r   Gr ap h R AG  b ased   r ejec tio n   an aly s is ,   wh ich       T h k n o wled g g r ap h   g en er at ed   f r o m   v ar io u s   en titi es e x tr ac ted   f r o m   t h in p u   R esu lt  af ter   ap p ly in g   th e   L eid en   alg o r ith m   f o r   clu s ter in g   to   th g r a p h     Evaluation Warning : The document was created with Spire.PDF for Python.
I AE I n J   R o b   &   A u to m   I SS N:   2722 - 2 5 8 6       C a s ca d in g   a u to m a ta   to   imp r o ve   efficien cy   o f la r g la n g u a g mo d els a g en ts   … ( Hri s h ikesh   K .   Ha r ita s )   157   au to m atica lly   o r g an is es  r o o c au s id en tific atio n ,   p r o p o s ed   s o lu tio n s ,   an d   s tep wis im p lem en tatio n   s tr ateg ies  d er iv ed   f r o m   wo r k f lo e r r o r   d ata.   T h is   s tr u ctu r ed   r e aso n in g   o u tp u d e m o n s tr ates  th ca p ab ilit y   o f   Gr ap h R AG  to   co n te x tu alize   an d   t r ac lo g ical   d ep e n d e n cies  b etwe en   d o cu m en t   er r o r s   an d   co r r ec tiv e   m ea s u r es,  th er eb y   en h a n cin g   e x p lain ab ilit y   an d   s u p p o r tin g   i n tellig en t a u to m atio n   in   er r o r   h an d lin g .               Fig u r e   6 .   Av e r ag in p u t a n d   o u tp u t to k e n   u s ag f o r   h an d lin g   th ex ce p tio n s   en co u n ter ed   in   th ex p er im e n tal  u s ca s es th r o u g h   Gr a p h R AG             Fig u r 7 .   R esu lts   o b tain ed   b y   u s in g   Gr ap h R AG       T o k en   u s ag ac r o s s   d if f er en t e x am p les   C o s esti m at io n   b ased   o n   GPT - 4   T u r b o   p r icin g         T o k en   u s ag ac r o s s   d if f er en t e x am p les   C o s esti m at io n   b ased   o n   GPT - 4   T u r b o   p r icin g     Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 7 2 2 - 2 5 8 6   I AE I n J   R o b   &   A u to m Vo l .   1 5 ,   No .   1 Ma r ch   20 2 6 :   1 49 - 1 61   158   5.   CO NCLU SI O N   Ou r   p ip elin e   o f   e x p ed ie n tly   i n v o k in g   L L Ms  f o r   e x ce p tio n   h an d lin g   an d   s u p er v is io n   d e m o n s tr ates  s ig n if ican p o ten tial  in   ad v a n cin g   t r u e   h y p er - au t o m atio n .   B y   s tr ateg ically   i n teg r atin g   L L Ms  o n ly   w h e n   n ec ess ar y ,   o u r   a p p r o ac h   ef f ec t iv ely   ad d r ess es  o n e   o f   th e   m o s p er s is ten ch allen g es  in   R PA th h an d lin g   o f   ex ce p tio n s with o u th co n s tan r elian ce   o n   co m p u tatio n ally   ex p en s iv a n d   h ig h - lat en cy   m o d els.  T h is   s elec tiv in v o ca tio n   n o o n ly   o p tim izes  r eso u r ce   u tili za tio n   b u also   e n s u r es  th at   au to m atio n   wo r k f lo ws   r em ain   ef f icien t,   r esp o n s iv e,   a n d   s ca lab le.     T h r o u g h   o u r   two   ca s s tu d ie s ,   we  illu s tr ate  h o th is   wo r k f lo h as  th p o ten tial  to   r e d ef in th e   au to m atio n   lan d s ca p b y   e n ab lin g   m o r in tellig en t,   co n tex t - awa r d ec is io n - m ak in g   with in   R PA  s y s tem s .   T h e   ab ilit y   to   s ea m less ly   in teg r ate  r u le - b ased   m ec h an is m s   with   L L M - p o wer ed   ex ce p tio n   h a n d lin g   co n tr ib u tes  to   g r ea ter   s y s tem   ad ap tab ilit y   a n d   r eliab ilit y ,   r ed u cin g   m a n u al  in ter v en tio n   wh ile  m ain tai n in g   ac cu r ac y .   T h is   ad v an ce m e n co u ld   s ig n if ica n tly   en h an ce   th a d o p tio n   an d   u b iq u ity   o f   R PA  ac r o s s   v ar io u s   in d u s tr ies,  f u r th er   b r id g in g   th g a p   b etwe en   tr a d itio n al  au to m atio n   an d   AI - d r iv en   co g n itiv au to m ati o n .   C o n s eq u en tly ,   o u r   ap p r o ac h   s er v es  as  f o u n d atio n al  s tep   to war d   r ea lizin g   f u ll y   au to n o m o u s   an d   r esil ien au to m atio n   p i p elin es  in   en ter p r is en v ir o n m en ts .       6.   F UT UR E   WO RK   T h er ar s ev er al  wo r k s   to   b ex p ec ted   in   th f u tu r e.   T h e   f ir s is   p r ev en tin g   L L h allu cin atio n .   L L Ms  f r eq u en tly   g e n er ate  in a cc u r ate  in f o r m atio n   o r   i n tr o d u ce   s ec u r ity   v u ln e r ab ilit ies  w ith in   R PA  s y s tem s .   Ad d r ess in g   th is   ch allen g is   a n   o n g o in g   r esear ch   ar ea   w h er m eth o d o lo g ies  s u ch   as  r ein f o r ce m en lear n in g   with   h u m a n   f ee d b ac k   ( R L H F),   r etr iev al - a u g m e n ted   g en e r atio n   ( R AG) ,   an d   s tr u ctu r e d   p r o m p tin g   h av e   d em o n s tr ated   p o ten tial  in   m itig atin g   h allu cin atio n .   Ad d itio n ally ,   ad v a n ce m en ts   in   ad v er s ar ial  test in g   an d   f in e - tu n e d   d o m ain - s p ec if ic  m o d els f u r th e r   co n tr i b u te  to   im p r o v in g   r eliab ilit y .   S e c o n d ,   i t   i s   u n i f i e d   t e c h n i q u es   f o r   h e u r i s t i c   d e s i g n .   T h e   d e v e l o p m e n t   o f   l i g h t w e i g h t   h e u r i s t i c   m o d e ls   a n d   r u l e - b a s e d   s y s te m s   t o   d e te r m i n e   t h e   n e c e s s i t y   o f   L L M   i n v o c a t i o n   i s   c r u c i al   f o r   o p t i m i z i n g   c o m p u t a t i o n a e f f i c i e n c y   a n d   m i n i m i z i n g   c o s ts .   T e c h n i q u e s   s u c h   a s   f e at u r e   e x t r a c t i o n ,   s t at is t i ca l   a n o m a l y   d e t e c t i o n ,   a n d   e d g e - b a s e d   A I   i m p l e m e n t a ti o n s   en a b l e   p r e c is e   h e u r is ti c   d es i g n   t h a t   e n s u r es   L L Ms   a r e   lev e r a g e d   o n l y   w h e n   n e c e s s a r y ,   t h e r e b y   i m p r o v i n g   r e s p o n s e   ti m e s   a n d   r e d u c i n g   u n n e c e s s a r y   c o m p u t a t i o n a l   o v e r h e a d .     T h th ir d   o n e   is   ex h au s tiv t esti n g   ac r o s s   d o m ain s   an d   u s ca s es .   W h ile  th is   s tu d y   illu s tr ates  th e   ef f icac y   o f   o u r   p i p elin in   t h b an k in g   an d   in s u r a n ce   in d u s tr ies,  co m p r eh e n s iv v alid a tio n   ac r o s s   d iv er s s ec to r s s u ch   as  h ea lth ca r e,   s u p p ly   ch ain   m an a g em en t,   an d   leg al  a u to m atio n wo u l d   p r o v id a   m o r r o b u s t   ev alu atio n .   E s tab lis h in g   b en ch m ar k   d atasets ,   r ea l - wo r ld   s tr ess   te s tin g ,   an d   d e f in in g   f o r m al  q u an titativ e   ass es s m en f r am ewo r k s   in c o r p o r atin g   f ac to r s   lik e   ac cu r a cy ,   laten cy ,   an d   r o b u s tn ess   u n d e r   ad v er s ar ial  co n d itio n s   ar ess en tial to   en h an ce   th g e n er aliza b ilit y   o f   t h ap p r o ac h .   T h e   n e x t   is   m u l ti - t i e r   c a s c a d e s   f o r   s c a l a b il i t y .   T h e   p r o p o s e d   a r c h i t e c t u r e   c u r r e n t l y   i n te g r a t es   tw o   l e v e ls   o f   c a s c a d i n g r u l e - b as e d   a u t o m a t a   a n d   L L M   a g e n t s b u t   f o r   l a r g e - s c a l e   d e p l o y m e n t s   i n v o l v i n g   m i l l i o n s   o f   t r a n s a c ti o n s ,   a d d i t i o n a l a y e r s   o f   p r o c e s s i n g   c o u l d   b i n t r o d u c e d .   T h e s e   m a y   i n c l u d s p e c i al i z e d   d o m ai n - s p e c i f i L L Ms ,   h y b r i d   a r c h it e ct u r e s   i n c o r p o r a ti n g   F u z z y   A u to m a t a ,   a n d   r e i n f o r c e m e n l e a r n i n g - b a s e d   d e c is i o n   s y s te m s   t h at   d y n a m i c a ll y   a d j u s t   p r o c e s s i n g   f l o w s   b as e d   o n   c o n t e x t   a n d   h i s t o r ic a l   p e r f o r m a n ce   m e t r i cs .   W also   n ee d   ad ap tiv e   m o d el   s elec tio n   an d   co n tin u o u s   lear n in g .   T o   en h an ce   ad a p tab ilit y ,   d y n am ic  m o d el  s elec tio n   m ec h an is m s   ca n   b in teg r ate d ,   allo win g   t h s y s tem   to   s witch   b etwe en   d if f er en L L Ms  o r   h eu r is tic  m eth o d s   b ased   o n   co n tex tu al  r eq u ir em en ts .   Ad d itio n ally ,   in co r p o r ati n g   co n tin u o u s   lear n in g   m ec h an is m s s u ch   as  f ed er at ed   lear n in g   an d   s elf - s u p er v is e d   tr ain in g ca n   h elp   im p r o v m o d el  p er f o r m an ce   o v er   tim b y   ass im ilatin g   r ea l - wo r ld   f ee d b ac k   a n d   d o m ain - s p ec if ic  u p d ates.   T h s ec o n d   last   is   r o b u s ex p lain ab ilit y   an d   in ter p r eta b ilit y   f r am ewo r k s ,   e n s u r i n g   th at  th e   d ec is io n - m ak in g   p r o ce s s es  o f   L L Ms  r em ain   tr an s p ar e n is   f u n d am en tal  r e q u ir em en f o r   en ter p r is ad o p tio n ,   p ar ticu lar ly   in   r e g u lated   in d u s tr ies.  I n co r p o r atin g   e x p l ain ab ilit y   tech n iq u es  s u ch   as  atten tio n - b ased   v is u aliza tio n ,   ca u s al  in f er en c m eth o d s ,   an d   p o s t - h o in ter p r etab ilit y   m o d els  wo u ld   en h an ce   u s er   tr u s an d   r eg u lato r y   co m p lian ce .   Fin ally ,   it  is   s ec u r ity   an d   ad v er s ar ial  r o b u s tn ess   m ea s u r es .   A s   L L Ms  ar in cr ea s in g ly   in teg r ated   in to   cr itical  au to m atio n   wo r k f lo ws,  en s u r in g   th eir   r esil ien ce   a g ain s ad v er s ar ial  attac k s   is   p ar a m o u n t.   T ec h n i q u es   s u ch   as  ad v e r s ar ial  tr ain in g ,   r o b u s in p u v alid atio n ,   a n d   m u lti - lay er ed   a u th en ticatio n   m e ch an is m s   s h o u ld   b e   in co r p o r ated   to   s af e g u ar d   ag ai n s t p o ten tial secu r ity   th r ea ts ,   d ata  p o is o n in g ,   o r   u n au t h o r ized   ac ce s s .       F UNDING   I NF O R M A T I O N   T h au th o r s   s tate  th at  n o   f u n d i n g   was in v o lv e d   in   s u p p o r tin g   th r esear ch   d escr ib e d   in   th is   ar ticle.     Evaluation Warning : The document was created with Spire.PDF for Python.