AI Playground

AI Playground

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?

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In

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-c7e45cd7d779

    Discount Code dataset:
    cb9f447a-f947-4f20-a65a-22e3e4562ee9

    Product List dataset:
    36e1ec39-184c-4cf9-b71f-2b3182361b38

    Activities & Events dataset:
    dc892af1-6d23-4879-816c-926c5e0484da

    OUTPUT:

    "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"}}"
    ]

  • 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"

  • 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.

  • 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

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In