Examples
Below are some example applications of how these new tools can be integrated into processes.
Web scraping
This is a process that, when a company is created, calls an agent to search for company information online and update it in the company records.
The agent must have activated a web search tool (e.g., web_search_exa) and the VTENEXT MCP client tools to access the module structure and update the record.
The process starts when a company is created and performs the Call Agent action.
In the User message, I ask to search for the information online and update the company fields. I also ask them to create a contact for the CEO.
If you have set the Background execution mode in the process action after saving, the system will notify that the record is still updating and once finished the browser page will automatically refresh.
From the History tab you will see the updated fields:
AssistenzaCustomer clientiservice chiusaclosed
In questothis casocase, implementiamowe unimplement processoa cheprocess neglithat orariautomatically inresponds cuito glitechnical ufficisupport sonotickets chiusiduring rispondeoffice automaticamentehours, aiinforming ticketthe dicustomer assistenzaof tecnicathe informandoclosure iland clienteattempting dellato chiusuraprovide ea tentandosolution dito fornirethe una soluzione al problema.problem.
Tool add_comment
PerFirst, primawe cosacreate realizziamoa unprocess tool perto aggiungereadd una commentocomment adto una ticket attraversothat untakes processothe tool che prevede in input i parametriticket id ticketand ecomment ilparameters commento.as input.
Nel secondo step del processo eseguiamo una chiamata LLM per rielaborare il testo del commento applicando un certo stile.
In questothe casosecond bastastep utilizzareof solamentethe unprocess, we perform an LLM anzichécall unto agenterework the comment text by applying a certain style.
User message:
Rewrite the comment in quantoa nontechnical èand necessarioprofessional utilizzaremanner:
tool$TOOLIN-comment
maNever solamenteuse sfruttareheadings laor capacitàMarkdown linguisticacode.
In modello.this case, it is sufficient to use an LLM instead of an agent since it is not necessary to use tools but only to exploit the linguistic capacity of the model.
InfineFinally, utilizziamowe lause funzionethe SDK Add comment SDK function, mappandomapping tuttiall ithe campirequired richiesti.fields. In questothis casocase, indicoI nelspecify parametroKitt's user ID in the ownerid l'idparameter, dell'utenteand Kitt e conwith ai impostatoset ato true, forzoI l'aggiuntaforce dia unanote notato informaticabe inadded calceto althe commentocomment's chefooter, indicaindicating chethat ilthe testotext èwas statogenerated generato tramiteusing AI.
Il toolThe add_comment vatool quindimust attivatothen nell'agentebe cheactivated utilizzeremoin neithe prossimiagent step,we assiemewill aluse toolin the next steps, together with the user_manual e/otool eventualiand/or documentiany nelladocuments sezionein the RAG persection lafor conoscenzathe necessariaknowledge needed to provide a fornire una soluzione.solution.
ImplementazioneTicket processoprocess su ticketimplementation
PossiamoWe quindican implementarethen unimplement nuovoa processonew oppure,process comeor inintegrate questothe caso, integrare le nuove logichenew AI inlogic unointo giàan esistente.existing one. In questothis casocase, sfruttoI unleverage processoan giàexisting esistenteprocess chethat allasets creazionethe diSLA unbased on priority when a ticket impostais lo SLA in base alla priorità.created.
NellaIn taskthe AI: check orariotime eseguotask, unaI chiamatamake all'agentea concall ilto seguentethe agent with the following prompt:
L'aziendaThe ècompany apertais dalopen lunedìMonday althrough venerdìFriday dallefrom ore 09:9:00 alleAM 13:to 1:00 ePM dalleand 14:from 2:00 allePM 18:to 6:00 iPM solion giorniweekdays feriali.only.
SeIf ilthe ticket èwas statocreated creatoduring inbusiness orariohours, direturn aperturathe restituisci la stringastring "open"; altrimentiotherwise, return "closed".closed."
RestituisciReturn esattamenteexactly quellathat stringastring senzawithout aggiungereadding altroany testoadditional otext titoli.or titles.
eand predispongoI laset up the dynamic form dinamicawith cona unfield campopopulated popolatowith conthe la risposta:answer:
ConfiguroI laconfigure condizionethe sulcondition campoon dellathe dynamic form dinamicafield eand ilthe next gateway successivoso inthat modoif chethe seagent l'agentereturns ritornaclosed the closedilprocess processogoes vadainto nella taskthe AI: rispautomatic automaticaresponse. task.
Nell'ultimaIn the last task delof processothe eseguoprocess, primaI lafirst chiamatacall al toolthe add_comment pertool informareto ilinform clientethe dellacustomer chiusuraof edthe infineclosure laand chiamatafinally all'agentecall perthe proporreagent lato soluzione.propose the solution.
IlThe commentocomment quiindicated indicatohere saràwill poithen rielaboratobe dalreworked modelloby the LLM nelmodel processoin tool.the tool process.
promptagent per agente:prompt:
aggiungiAdd una commentocomment conwith il toolthe add_comment proponendotool, unasuggesting soluzionea alsolution suoto problematheir cercandoproblem by searching in user_manual.
NelNever testouse nonheadings usareor maimarkdown titolicode oin codicethe markdown,text; restituiscireturn soloonly testoplain semplice.text.
Test
TestiamoLet's iltest processothe creandoprocess unby creating a ticket during off-hours with the Title Login failed and Description "Good morning, I can't log in orarioto divte chiusurathis conmorning. TitoloCan loginyou fallitocheck e Descrizione "buongiorno stamattina non riesco più a fare il login a vte, potete controllare urgentemente?urgently?"
VerrannoComments aggiuntisimilar deito commentithese similiwill abe questi:added:

























