AI tasks repeating the variable
# 🤝help
f
AI task is not storing my answer in the variable and the answer is just that variable. can someone help with that?

https://cdn.discordapp.com/attachments/1144586151705989172/1144586152330919966/image.png

a
hey @freezing-eve-60762 this can happen for a couple of reasons: 1. The AI task is not specifically instructed to save the result to the
workflow.prayer_someone_answer
variable 2. The prompt exceeds 4000 characters 3. Your bot is sending more than 50 AI events per minute and is getting rate limited
f
I think it's the second one. I've given it quite a lengthy prompt. So how should I go about it?
a
reduce the length of your prompt. You can take stuff out like extra examples, old chat history messages, etc
f
But I've got two other AI task with even greater prompt length and they're working fine
Uh wait. It's working now. I replaced the "@" with "{{ }}" and it's working
2 Views