# No magic text outputs being created on testing custom action based on API response

**URL:** <https://forum.adalo.com/t/no-magic-text-outputs-being-created-on-testing-custom-action-based-on-api-response/10728>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [March 26, 2021, 4:15pm UTC](https://forum.adalo.com/t/no-magic-text-outputs-being-created-on-testing-custom-action-based-on-api-response/10728 "2021-03-26T16:15:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helpee](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@Helpee](https://forum.adalo.com/u/Helpee)\
**Post date:** [March 26, 2021, 4:15pm UTC](https://forum.adalo.com/t/no-magic-text-outputs-being-created-on-testing-custom-action-based-on-api-response/10728/1 "2021-03-26T16:15:33Z")

</div>

I am using Gupshup for 2FA via SMS. The signed up or logged-in user is receiving the OTP. But during verification of the OTP, no Magic Text outputs for the returned data are being created automatically. Can someone help in resolving this? Without it, I’m unable to use the output defeating the whole purpose.[Adalo|690x362](https://forum.adalo.com/uploads/short-url/5lrzlLxp61AFHxJGR12QDPPZCpA.png)

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [March 29, 2021, 11:06am UTC](https://forum.adalo.com/t/no-magic-text-outputs-being-created-on-testing-custom-action-based-on-api-response/10728/2 "2021-03-29T11:06:35Z")

</div>

Hi @Helpee,

Welcome to the forum!

What I can see on your screenshot is that API returns the Error in reply (“error | 311 | This OTP doesn’t exist”).  
To enable Adalo create the magic text out of the reply, the reply must be in JSON format. Try to set up all the steps like you receiving the actual OTP.

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![Helpee](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@Helpee](https://forum.adalo.com/u/Helpee)\
**Post date:** [March 29, 2021, 2:43pm UTC](https://forum.adalo.com/t/no-magic-text-outputs-being-created-on-testing-custom-action-based-on-api-response/10728/3 "2021-03-29T14:43:59Z")

</div>

This worked. Thank you so much, @Victor!
