Generate Images
Last updated
Last updated
Method Inputs
Method Name
GenerateImagesMethod
Request Type
openai-generateimages
Parameters: search
any thing that you would like to generate images for
Parameters: noofimage
Number of images you'd like to generate
Parameters: OrganizationID
{{Context.OrganizationID}}
Parameters: EmployeeID
{{Context.EmployeeID}}
The method result section is used to define how you want to display the result of the query response.
Method Result
Record JsonPath
$.choices[0].message
Valid Result Template
{{Records}} How else can I help you?
Record Template
{{content}}
Empty Result Template
How else can I help you?
Automatically prompt for next question
False
a. Record JsonPath: The result of each method is returned in JSON and ixHello uses JSONPath query to access those results. By providing the value $.choices[0].message, you are asking the method to read the message of first item in the list of results. The response JSON looks somewhat like this.
b. Valid Result Template: It defines how the result is presented to the user.
By using {{Records}} , you are accessing all the results of the method query.
c. Record Template : This represents a single record and how a record shall be presented to the user. {{content}}
d. Empty Result Template : In case the query does not return any value, this prompt is next displayed to the user.
e. Automatically prompt for next question: This flag is intended for integrations to smart bots like Alexa and Lex, where the user defines if the bot shall prompt the user for next question after the previous query has been answered for the app. For Generative AI apps, this flag is set to false.
Note: Everything parameter that has{{ }} means that the platform is interpreting the value from its parameters, input parameters or managed results.