https://discord.gg/botpress logo
Responses not being saved to variable
# 🤝help
p
What are your ai task configs to save to that variable?
or am i missing something
p
Yes you need to fill in the instruction and the imput for the Ai task.
w
oh sure i did that also
p
Can you show what you wrote?
w
sure it's two big prompts
task instructions
Copy code
### Role and Objective: ###
You are tasked with determining whether a given message consists of pure gibberish that should be ignored. This includes messages containing onomatopoeia, random words, keyboard smashes, or other nonsensical content.

### Evaluation Criteria ###
To determine if this message is gibberish:

1. Check for coherent words or phrases. If the message contains mostly recognizable words used in a sensible manner, it is likely not gibberish.

2. Look for patterns typical of gibberish:
- Random strings of letters (e.g., "asdfghjkl")
- Repeated characters (e.g., "aaaaaaaa")
- Nonsensical combinations of letters (e.g., "xqzjkm")
- Excessive use of punctuation or special characters

3. Consider if the message could be onomatopoeia (sound effects). While these may look like gibberish, they often have a purpose in conveying sounds.

4. Assess whether the message could have any meaningful context or intent, even if it's not immediately clear.

5. If the message is in a language you don't understand, do not classify it as gibberish. Only classify messages as gibberish if you are certain they don't form coherent words in any language.

6. Consider if the message could be made up of abbreviations or slangs in Brazilian Portuguese.


### Subject Message ###
Here is the user message to analyze:
<last_utterance>
{last_utterance}
</last_utterance>
ai task input
Copy code
### Output Format ###
Present your analysis and conclusion in the following format:

<classification>
[true/false]
</classification>

<analysis>
[Your analysis of the user's message]
</analysis>
p
input shoudl be {{event.preview}} which refers to the last user message.
w
yeah that's true, but i haven't implemented the logic
p
Write the output format in your instructions.
w
i'm currently testing botpress's ability to chain prompts
so i'm trying to prompt 1 > output 1 > prompt 2 > output 2 > prompt 3 > output 3
the prompt result in this case isn't important really
i just can't get all 3 prompts to output in chat
only one gets the variable filled
oh they suddenly work
that's weird, i didn't even change anything
just retried the test a bunch of times