Testing the connector
Last updated
Last updated
Now that the agent is running - lets test the connector by executing the integration in the model designer.
If you execute the workflow you should get a 'ok' as a reply.
This is because in your agent code, you setup the result to have the value ok
So if you see that result, it means the connectivity works!
The next step is receiving inputs.
Lets go back to our agent code inside the processRequest function:
Lets change this to receive our payload and parse it and extract the query.
Recall in the step where you defined your connector function, you created a JSON payload like
So this is the payload we will be receiving inside the processRequest()
function.
Lets parse it and extract the query.
So we can now extract the sql query.
Now we need to actually integrate sqlite and run the query. Lets do that next.