Sensedia AI Copilot is an AI assistant specialized in Camel integrations in YAML DSL format. With this tool, you can create or edit Camel integration scripts quickly, reducing development time and increasing efficiency.
IMPORTANT
Sensedia AI Copilot is currently in beta version. This means the functionality is still evolving and may undergo adjustments.
Enable the Use AI Chat for Source Code Generation permission in Access Control to use this functionality.
To use Sensedia AI Copilot:
Click the AI Copilot icon in the lower right corner of the Source screen, in the Source Code tab.
Enter the prompt with instructions to create or edit an integration and click the arrow on the right to send it.
Copy the generated code by clicking the copy icon in the right corner of the conversation box.
Insert the script into the main.yaml code editor.
IMPORTANTThe conversation history will be automatically deleted when you leave the Source screen.
It is very important that the prompt is clear and specific to get the best results. Here are some tips for creating effective prompts:
Camel Components: explicitly mention the Camel components you want to use and the purpose of each one in the integration route.
Examples
timer component to execute every 10 seconds.http component to make a GET call to an external API.kafka component.Enterprise Integration Patterns (EIPs): specify the EIPs that the route should implement and what should be done at each step.
Examples
setProperty EIP to extract the clientId field from the JSON body and store it as an exchange property called idClienteProp.setHeader EIP to define a header called StatusProcessamento with the initial value RECEBIDO.setBody EIP to transform the message body, selecting only the item and quantidade fields from the original JSON using a simple expression.Systems and endpoints involved: describe the source and destination systems, including their respective endpoints (URIs), when possible.
Examples
pedidos_novos.POST request to the endpoint http://api.parceiro.com/webhook./opt/arquivos/processados directory.TIPThe more details you provide, the more accurate the generated script will be.
IMPORTANTResources files and flow variables must be created manually, but Sensedia AI Copilot can suggest their content.
Check out prompt examples you can use as reference:
IMPORTANTThe examples below are organized into topics for faster and more fluid reading, but you should type your prompt in continuous text, without line breaks.
POST /orders that accepts a JSON payload.customerId and orderId from the payload. Log these IDs.customerDetails./api/pedidos.statusPedido property in the request body (JSON) equals CONCLUĂŤDO.Order with ID is not CONCLUĂŤDO.We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more