Skip to main content
Function AskAI()

Execute any custom prompt to process and analyze your data

Erik avatar
Written by Erik
Updated over 7 months ago

Use AskAI() to analyze your text data and, optionally, an array of images, with OpenAI's GPT-4.

Contact us in chat or at [email protected], and our solution engineers will help you implement AI analysis of your data and generate efficient AI prompts.

How to use

Use the function by passing the prompt as the first argument (required) and an array of image IDs (optional):

  • AskAI(prompt)

  • AskAI(prompt, file_id_array)

Input

  • prompt: your GPT-4 prompt that may include instructions for the AI, questions, and text input to be analyzed.

    Note. Contact us in chat or at [email protected], and our solution engineers will help you create prompts for your particular use scenarios.

  • file_id_array (optional): an array of file IDs, each containing an image that you would like the AI to analyze.

    Note. Both the File field on a Form, and the Files data field in Mapsly objects like Check-in and Route activity, contain an array of file IDs, so their values can be passed to AskAI() as the file_id_array parameter.

Output

A response message from the GPT-4 model.

Examples

{{ AskAI("Hi AI. Please describe the pictures that I have passed to you", ["bff2930c-605a-4a30-9918-a621f82f37f8". "4b9657ca-24c4-429c-b8be-2dcf88ed6999" "02064064-cfb3-44a1-a832-d05cebf66497"]) }}

Did this answer your question?