Fix this to pull a link from email body slice(body('Htmltotext'),…
- User
Fix this to pull a link from email body slice(body('Html_to_text'), add(nthIndexOf(body('Html_to_text'), '"', 7), 1), nthIndexOf(body('Html_to_text'), '=', 12))
Assistant
To fix this, you'll need to replace
body('Html_to_text')with a variable that contains the email body. Assuming you have a variable namedbody('Html_to_text'), you can modify the code as follows:scssvar body = <your email body HTML here>; slice(body('Html_to_text'), add(nthIndexOf(body('Html_to_text'), '"', 7), 1), nthIndexOf(body('Html_to_text'), '=', 12))This code will search for the first occurrence of the email body's
"character ("Html_to_text"), the=character (which appears as=Html_to_textin your example), and the",', or<br>character (the first two are common table cell formatting tags), and extract the text between those characters.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.