I'm trying to get Riley's workflow from AI Academy Episode 2 (2 days ago) to work- can anyone help?

I'm trying to get the sample workflow that Riley presented in the AI Academy Episode 2 (2 days ago) to work but keep getting errors. Can anyone help me?
My most recent attempts are failing with a highly unhelpful error message (Internal Server Error).
"result":{"error":"Internal Server Error"}}"
Any ideas what could be wrong?
Answers
-
AI Agent Task - TESTING
INPUT:
A customer segment has been selected for a marketing campaign. The segment is: Bargain Hunters.
Use the following datasets to create a tailored and persuasive marketing campaign that is relevant to this specific customer segment.
Customer Segments dataset:
51b67935-9c8a-4aeb-b9b9-c7e45cd7d779Discount Code dataset:
cb9f447a-f947-4f20-a65a-22e3e4562ee9Product List dataset:
36e1ec39-184c-4cf9-b71f-2b3182361b38Activities & Events dataset:
dc892af1-6d23-4879-816c-926c5e0484daOUTPUT:
"result": [
"Error: {"outputMessages":[{"content":[{"type":"TEXT","text":"A customer segment has been selected for a marketing campaign. The segment is: Bargain Hunters.\n\nUse the following datasets to create a tailored and persuasive marketing campaign that is relevant to this specific customer segment.\n\nCustomer Segments dataset: \n51b67935-9c8a-4aeb-b9b9-c7e45cd7d779\n\nDiscount Code dataset: \ncb9f447a-f947-4f20-a65a-22e3e4562ee9\n\nProduct List dataset: \n36e1ec39-184c-4cf9-b71f-2b3182361b38\n\nActivities & Events dataset: \ndc892af1-6d23-4879-816c-926c5e0484da"}],"role":"USER"},{"content":[{"type":"TOOL_USE_REQUEST","toolInput":{"dataset":"51b67935-9c8a-4aeb-b9b9-c7e45cd7d779","sql":"SELECT * FROM customer_segments WHERE segment_name = 'Bargain Hunters'"},"name":"queryWithSql-0","toolCallId":"call_4UJVEkkaNw0s3TScB9Pd1cHa"},{"type":"TOOL_USE_REQUEST","toolInput":{"dataset":"cb9f447a-f947-4f20-a65a-22e3e4562ee9","sql":"SELECT * FROM discount_codes WHERE applicable_to = 'Bargain Hunters'"},"name":"queryWithSql-0","toolCallId":"call_wVDzVE6P88UaALXlupKouObc"},{"type":"TOOL_USE_REQUEST","toolInput":{"dataset":"36e1ec39-184c-4cf9-b71f-2b3182361b38","sql":"SELECT * FROM products WHERE category IN ('Electronics', 'Home Appliances') AND discount_available = true"},"name":"queryWithSql-0","toolCallId":"call_Kpb7cSuZBE9427MU8EnTGTSb"},{"type":"TOOL_USE_REQUEST","toolInput":{"dataset":"dc892af1-6d23-4879-816c-926c5e0484da","sql":"SELECT * FROM events WHERE target_audience = 'Bargain Hunters'"},"name":"queryWithSql-0","toolCallId":"call_ZkmQPqN4dOLaOF9hVL5jcu4i"}],"role":"ASSISTANT"},{"content":[{"type":"TOOL_USE_RESULT","toolCallId":"call_4UJVEkkaNw0s3TScB9Pd1cHa","content":[{"type":"TEXT","text":"null"}]},{"type":"TOOL_USE_RESULT","toolCallId":"call_wVDzVE6P88UaALXlupKouObc","content":[{"type":"TEXT","text":"null"}]},{"type":"TOOL_USE_RESULT","toolCallId":"call_Kpb7cSuZBE9427MU8EnTGTSb","content":[{"type":"TEXT","text":"null"}]},{"type":"TOOL_USE_RESULT","toolCallId":"call_ZkmQPqN4dOLaOF9hVL5jcu4i","content":[{"type":"TEXT","text":"null"}]}],"role":"USER"}],"result":{"error":"Internal Server Error"}}"
]0 -
Hmmm… I might have been able to get it to run after editing the AI Service Layer settings. I had a model error first [looked like this: ,"model":"gpt-4"},"name":"TEXT_GENERATION-1","toolCallId":"toolu_bdrk_018wUEsnSAq9LWsDwxeuAtVp"}],"role":"ASSISTANT"}],"result":{"error":"Not Found"}}"] so I went to try and change some settings there and I think I turned on the OpenAI stuff. I just went back and changed "Default model provider" to "DomoGPT" (in Settings) and for "Text Generation" (in Services) I left the Selected Model as "DomoGPT Chat - Medium v1.1"
0 -
I'm getting sporadic success now. Also quite odd that 4 of the 5 segments seem to work fine but "Bargain Hunters" errors out almost every time.
0 -
So I had better luck after slightly editing the prompt (the "Custom" "Input" under "Parameters" in the CONFIGURATION tab of the AI Agent Task) to this:
The customer segment called "CustomerSegment" has been selected for a marketing campaign.
Please use the following datasets to create a tailored and persuasive marketing campaign that is relevant to this specific customer segment.
Customer Segments dataset = customerSegments
Discount Code dataset = discountCodes
Product List dataset = productList
Activities & Events dataset = events
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 657 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 815 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 775 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 81 Workflows
- 23 Code Engine
- 40 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 1 AI Projects and Models
- 18 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 144 Manage
- 140 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive