https://retellai.com/?utm_source=discord&utm_medium=seo logo
Chat widget is rendering output of an html code in...
# ❓・bug-report
d
I have created a chatbot and connected it with Gemini to asnwer html coding related questions. The problem is the chatbot is providing the html codes fine but when the code contains the following part, it is replacing that bit of code with an image, instead of delivering the code itself. Code in question: <img src="{{ image | image_url: width: 600 }}" {# Fallback
src
for older browsers or if srcset fails #} srcset=" {%- for width in image_widths_array -%} {{ image | image_url: width: width }} {{ width }}w {%- unless forloop.last -%},{%- endunless -%} {%- endfor -%}" {# IMPORTANT: Adjust the 'sizes' attribute based on your actual CSS layout. This example assumes: - 90% of viewport width on screens up to 767px wide (mobile) - 50% of viewport width on screens between 768px and 1024px (tablet) - 30% of viewport width on screens wider than 1024px (desktop, e.g., for a grid) #} sizes="(max-width: 767px) 90vw, (max-width: 1024px) 50vw, 30vw" alt="{{ image.alt | escape }}" width="{{ image.width }}" {# Original image width for CLS #} height="{{ image.height }}" {# Original image height for CLS #} loading="lazy" {# Native lazy loading #} > Screenshot of the chat widget response: https://drive.google.com/file/d/12sjr5ogt6hQZ9thdnyu78mJCXj6mO4Jt/view?usp=sharing Can someone tell me how can stop the chat widget to render the html action and just deliver the code instead? https://cdn.discordapp.com/attachments/1447648415843618998/1447648416162123816/image.png?ex=69424666&is=6940f4e6&hm=f2ed19fed6f72967d28ab19169141da5910a4b9acee535ee0f2499537f40ae43& https://cdn.discordapp.com/attachments/1447648415843618998/1447648417164558347/image.png?ex=69424666&is=6940f4e6&hm=46a2d5e6f3dbdf29a54029499f51e839dc0acf3e34c377470569b7ee8c42c87a& https://cdn.discordapp.com/attachments/1447648415843618998/1447648417517015091/image.png?ex=69424666&is=6940f4e6&hm=30f8cc11d7956e5de90acc0b14e2ff2bbddafd2378b50d7d9c6442229a98591f& https://cdn.discordapp.com/attachments/1447648415843618998/1447648417823195216/image.png?ex=69424666&is=6940f4e6&hm=7b611777665a88deef318456dd595d38cbb4677530de8ae381ab8fd487d9e8a0&
o
Hello @dzei2234 is this retell widget?
d
@Omar Ashraf | Community Lead yes this is retell widget. do you want me to record a loom maybe?
o
Yes that will be helpful
d
okay give me a moment please @Omar Ashraf | Community Lead
https://www.loom.com/share/a564399e8da8496daaf8b917e6ee2c0d @Omar Ashraf | Community Lead here is the loom video. please let me know if you have any question
o
Okay, I see the issue let me check with team and get back to you.
are you able to provide the chat id
d
@Omar Ashraf | Community Lead how can I get the chat id?
o
chat history
d
@Omar Ashraf | Community Lead here is the chat id: chat_b6830e0f46cfd9373ebb410890a
@Omar Ashraf | Community Lead please let me know if that is alright. let me knwo if you need anything else
@Omar Ashraf | Community Lead can i get a response please?
o
I've let the team know about this , I will update you as soon i get response.
d
okay thanks
@GHL & Ai Automation VA is there any update on this please?