AI Object
 
Syntax
 
AI.NewConversation([Template As AITemplate]) As Long
 
Description
Creates a conversation handle without submitting a question. Use this when you want to attach one or more files or a recordset before asking. The returned handle is passed to AttachFile / AttachRecordset and then to Ask as its third argument.
 
For a plain question without attachments, NewConversation is not needed — call Ask directly and it creates the handle for you.
 
The return value is a handle greater than zero.
 
Parameter
Description
Template
AITemplate, optional. Selects the system prompt template. Default aiGeneral. Possible values:
Constant
Value
Purpose
aiGeneral
0
General-purpose business assistant.
aiSQLCopilot
1
T-SQL query design assistant.
aiTBSCopilot
2
Tradium Basic Script assistant.
aiKlantBetaalgedrag
3
Customer payment-behaviour analysis.
aiKlantOrderomzet
4
Customer order-turnover analysis.
aiKlantArtikelomzet
5
Customer article-turnover analysis.
aiLeverancierPrestatie
6
Supplier-performance analysis.
 
See Also
AskAttachFileAttachRecordsetCloseHandle.