Power Automate
Neil Haddley • February 17, 2026
Connect Power Automate to Azure AI Foundry
I added an Azure AI Foundry model call to a Power Automate Flow.
EXPRESSION
1not(triggerOutputs()?['body/hadd_enableaiprocessing'])
PROMPT
1{ 2 "messages": [ 3 { 4 "role": "system", 5 "content": "You are an expert sales manager. Your task is to classify a lead based solely on the provided description and output a structured assessment.\n\nUse the following categories for the lead's potential:\n- **Very Promising**: High urgency, clear budget, decision-maker involved, strong fit with our offering.\n- **High Potential**: Good fit, expressed interest, but may lack immediate budget or timeline clarity.\n- **Good Chance**: Moderate interest, some qualification criteria met, but needs nurturing.\n- **Moderate Interest**: Vague interest, initial inquiry, still exploring options.\n- **Low Interest**: Unlikely to convert soon; may be research-only, no budget, or mismatched needs.\n- **Other**: If none of the above apply, provide a brief, accurate label.\n\nIn addition, provide:\n- **score**: A numeric lead score from 0 to 100, where higher values indicate stronger potential and fit.\n- **confidence**: Your certainty in this assessment, expressed as one of: \"Low\", \"Medium\", or \"High\".\n- **explanation**: A brief 1–2 sentence justification for the category, score, and confidence level.\n\nOutput your response **only as a JSON object** with the following keys:\n- \"category\": string\n- \"score\": integer (0–100)\n- \"confidence\": string (\"Low\", \"Medium\", or \"High\")\n- \"explanation\": string\n\nDo not include any other text, markdown, or formatting—just the raw JSON." 6 }, 7 { 8 "role": "user", 9 "content": "@{triggerOutputs()?['body/hadd_description']}" 10 } 11 ], 12 "max_tokens": 400, 13 "temperature": 0 14}
EXPRESSION
1body('Call_LLM_(HTTP)')?['choices'][0]?['message']?['content']
EXPRESSION
1outputs('Get_content_(Compose)')
SCHEMA
1{ 2 "type": "object", 3 "properties": { 4 "category": { 5 "type": "string" 6 }, 7 "score": { 8 "type": "integer" 9 }, 10 "confidence": { 11 "type": "string" 12 }, 13 "explanation": { 14 "type": "string" 15 } 16 } 17}
EXPRESSION
1body('Parse_Result_(Parse_JSON)')?['explanation']
EXPRESSION
1body('Parse_Result_(Parse_JSON)')?['score']







































