Skip to main content

Intro

Domo Workflows integrates with the Domo AI Service Layer, specifically the AI Playground services. There are standard and advanced options available. To enable these services for your instance, contact ai@domo.com. Learn more about the AI Service Layer and AI Playground. Learn more about Domo.AI external link.png .

Access AI Service Layer in Workflows

To access the AI Service Layer (both standard and advanced options) after they have been enabled in your instance, follow these steps:
  1. In the navigation header, select More > Workflows to display the Workflows landing page.
  2. Either select an existing workflow or select + New Workflow.
  3. In this article, go to either the instructions for Standard AI Service Layer integration or Advanced AI Service Layer integration and follow the steps.
workflows landing page.jpg

Standard AI Service Layer Integration

After opening your new or existing workflow, follow these steps to add a standard AI Service Layer function:
  1. (Conditional) For a new workflow, first choose a Start type.
  2. Select Add > Service Task.
  3. In the configuration panel at the right of the canvas, under the Mapping tab, select Explore Functions. to display the available packages.
    explore functions.jpg
    The Packagesmodal displays.
  4. In the modal, use the search bar to enter and locate the Domo AI Services Layerpackage.
  5. In the search bar, locate the Domo AI Services Layer option.
    domo ai services layer.jpg
  6. Select Domo AI Services Layer to view the available functions. Choose which one to add to your flow.
    • Ask for SQL Query
    • Ask for Text
    • Ask for Beast Mode
    • Ask for Summary
      Screenshot 2024-01-12 at 1.43.41 PM.png

Ask for SQL Query

The Ask for SQL Query function allows you to transform your natural language questions into precise SQL queries. As with the AI Playground Text-to-SQL feature, you can input and map parameters for your output SQL query and test the input and output.
Screenshot

Ask for Text

The Ask for Text function allows you to generate a prompt-specific response to meet your needs. You can input and map parameters for your output text query and test the input and output.
testing for text.jpg

Ask for Beast Mode

The Ask for Beast Mode function allows you to transform your natural language questions into precise Beast Mode queries. You can input and map parameters for your output Beast Mode query and test the input and output.
testing for beast mode.jpg

Ask for Summary

The Ask for Summary function allows you to summarize a prompt. You can input and map parameters for your output summary query and test the input and output.
Screenshot

Advanced AI Service Layer Integration

After opening your new or existing workflow, follow these steps to add an advanced AI Service Layer function:
  1. Add a new action and select Explore Functions.
  2. In the search bar, locate the Domo AI Services Layer – Advanced option.
  3. Select Domo AI Services Layer – Advanced to view the available functions and choose which one to add:
The advanced options allow more configuration than the standard option.
Screenshot

Ask for SQL Payload

The Ask for SQL Payload function transforms your natural language questions into precise SQL queries, returns the payload, and allows for more input and output options. You can define the following input parameters:
  • dataset
  • input prompt
  • model
  • modelConfiguration
  • parameters
  • promptTemplate
You can also define the following output parameters and mapping for the output.
Screenshot

Ask for Text Payload

The Ask for Text Payload function generates a prompt-specific response to meet your needs, returns the payload, and allows for increased input and output options. This function allows you to set up mapping for the following:
  • input prompt
  • model
  • modelConfiguration
  • parameters
  • promptTemplate
The following output parameters can also be mapped:
  • generatedText
  • isCustomerModel
  • modelId
  • prompt
Screenshot

Ask for Beast Mode Payload

The Ask for Beast Mode Payload function transforms your natural language questions into precise Beast Mode calculations, returns the payload, and allows for increased input and output options. This function allows you to map the following parameters:
  • chatContext
  • dataSet
  • input prompt
  • modelConfiguration
  • parameters
  • promptTemplate
  • system
The following output parameters can also be mapped:
  • beastMode
  • isCustomerModel
  • modelId
  • prompt
  • choices

Screenshot

Ask for Summary Payload

The Ask for Summary Payload function summarizes a prompt and returns the payload. This function allows you to map the following input parameters. Required parameters are starred (*).
  • chatContext
  • chunkingConfiguration
  • model
  • modelConfiguration
  • parameters
  • prompt*
  • promptTemplate
  • sizeBoundary
  • summarizationOutputStyle
  • summarizationStrategy
  • system
For Ask for Summary Payload, you can map the following output parameters:
  • choices
  • isCustomerModel
  • modelId
  • prompt
  • summary
Screenshot 2024-01-12 at 1.06.33 PM.png

Input Parameter Reference

Output Parameters

Required parameters have an *.