like-gold•16mo ago
Set ai block assigning 0
Hey everyone,
Can you help me with my set AI block.
Basically it takes a set of text and assign it to two variable {image} and {response_agent} then output both variables.
The prompt seems to be working when i test it individually but it doesn't assign the value to the required variable.



4 Replies
To address the issue with your Set AI block not assigning values to the variables
{image}
and {response_agent}
, follow these steps:
1. Ensure Correct Configuration:
- Make sure the Set AI step is properly configured in the editor. You should have the variables {image}
and {response_agent}
defined in your project.
2. Check Prompt and Variable Mapping:
- In the Set AI step, ensure that the prompt is correctly set and that the variables are mapped to the AI's response. This involves specifying the variables in the "Variable Map" section of the Set AI step.
3. Test in the Editor:
- Use the Preview button in the editor to test the prompt. This will help you verify if the AI is generating the expected output.
4. Run in Test Tool:
- To fully test the functionality, including variable assignment, run the conversation in the Test Tool. This will simulate a real session and ensure that the variables are being assigned correctly.
5. Check for Errors:
- If the variables are still not being assigned, check for any errors in the configuration or in the prompt that might be causing the issue.
Here is a brief overview of the steps to configure the Set AI step:
- Add Set AI Step: Find the Set AI step in the Assistant's Steps under the AI section and add it to your assistant.
- Configure Prompt: In the editor, configure the prompt field with the text you want to use.
- Map Variables: In the Variable Map section, map the AI's response to the {image}
and {response_agent}
variables.
For more detailed guidance, you can refer to the Voiceflow documentation on Set AI.
If you follow these steps and still encounter issues, please provide more details about your configuration and any error messages you receive.What LLM are you using?
like-goldOP•16mo ago
Chatgpt itself
Gpt 3.5
Try using Haiku