Method GetTextAIAdvanced

Returns information about the object based on a provided custom instruction. It utilizes an external Artificial Intelligence (AI) service, requiring Internet connectivity. Note that this process is subject to Copilot token limits.

Usage

Function GetTextAIAdvanced( 
       String prompt,
       Double temperature [Optional],
       Boolean Report [Optional]
)

Parameters

Prompt

Type: String

Custom instruction to the AI Copilot service.

Temperature (optional)

Type: Double

Default value: 0.5

Range: 0.0-2.0. A higher value increases the creativity and randomness of the generated responses, while a lower value results in more deterministic and focused output.

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step.

Returns

Returns a string value of the AI-generated response, or an empty string if the response cannot be generated. An empty string is also returned in cases of no internet connectivity or if the Copilot service is out of tokens.

Example

VBScript

objectInfo = Application("Demo").View("DemoView").Object("LogoImage")GetTextAIAdvanced(“Describe the image”, 0.5,True)

JavaScript

var objectInfo = Application("Demo").View("DemoView").Object("LogoImage")GetTextAIAdvanced(“Describe the image”, 0.5,true);

Documentation Categories

ZAPTEST

FARM

LOAD