Candela, FINBOURNE's AI agent, is built into LumiCode's prompt. Ask it how to get data out of a provider, why a query failed or how to make one faster, and run the query it suggests in one step. It knows your catalog, so its suggestions use the providers and fields you actually have.
Candela availability
Candela is currently available to some customers only. If it isn't available in your domain, LumiCode tells you when you use /ai, and everything else in LumiCode works as usual.
Prerequisites
LumiCode installed and signed in. See How do I install LumiCode?
Methods
Method 1: Ask Candela a question
Type
/aifollowed by your question, and press Enter. For example:/ai How do I list the equities I have, with their ISINs?Candela answers in the transcript. While it works, LumiCode shows which tool Candela is using. To stop waiting, press Ctrl+C.
Carry on the conversation at the prompt. Everything you type is sent to Candela until you go back to SQL.

Method 2: Ask about the query you just ran
Type /ai last, optionally followed by a question, and press Enter. For example: /ai last Why did this fail? or /ai last Can this run faster?
Candela is given the query, and its error if it failed.
Method 3: Ask about an older query
Type
/recentand press Enter.Select the query and press Enter.
Choose discuss it with Candela.
/results offers the same choice for queries whose results are still available.
Running what Candela suggests
When Candela's answer contains a query, LumiCode offers it to you when the answer ends. If there's more than one, choose which. Then choose:
run it now: LumiCode leaves the conversation and runs the query. Press the Up arrow afterwards to edit it.
put it in the editor history: press the Up arrow at the prompt to edit it before you run it.
Press Esc to ignore the suggestion. A suggestion that is only part of a query, such as a where clause, can only be put in the editor history.
Leaving and coming back
To go back to running SQL, type
/sql, or press Esc at an empty prompt. The conversation is kept.To reopen a recent conversation, type
/ai resume.To start a new conversation, type
/aion its own.