Lovato revealed that she created the song shortly before her overdose in an interview on ‎New Music Daily with Zane Lowe for Apple Music’s Beats 1 last week.

\"I was recording it in a state of -- where I thought I was OK, but clearly I wasn't,\" she said on Friday's show. \"I even listen back to it and I'm like gosh, I wish I could go back in time and help that version of myself.\"

The singer, who is now clean and sober, added that she views the track as \"a cry for help.\"

\"PHOTO:
Kevin Winter/Getty Images
PHOTO: Demi Lovato performs onstage during the 62nd Annual GRAMMY Awards at STAPLES Center on January 26, 2020 in Los Angeles, California.
>

\"You kind of listen back to it, and you think, 'How did nobody listen to this song and think let's help this girl?'\"

Demi Lovato is opening up on life after her overdose and her return to the stage. @arobach has the story. https://t.co/0IiQPJ8uiL pic.twitter.com/uQDaH2NcLf

— Good Morning America (@GMA) January 24, 2020

She also revealed how she's coped and moved forward after the hardships she endured.

\"When I'm struggling and I'm going through a rough time, I look toward the future for hope,\" she said. \"To change my perspective on things, especially when I go through something difficult, I stop and I think 'OK, why is God putting me through this?'\"

Her main focus is on her \"family and friends\" since changing her life after her near-fatal overdose.

\"My success does not measure my happiness. So, when I think about what makes me happy today, I think about my family. I think about my friends,\" she said. \"I think about people -- connections, soul connections,\" she said Friday.

View this post on Instagram

A post shared by Demi Lovato (@ddlovato) on Jan 23, 2020 at 11:50pm PST

She admitted that she's had \"errors in judgment\" in the past when it comes to the people she surrounds herself with -- and still does from time to time.

\"You have to make a decision every time, of like, is this someone that I want around,\" Lovato said. \"If it's not conducive to your journey that you want to be on, there's no need for them to be in your life.\"

Aside from her future in the music industry, the star also has set her sights on having children.

\"I want to start a family. That would be dope ... and I don't know if I see it with a man or a woman. But like, I just know that at some point, I would love to do that this decade.\"

","canonicalUrl":"https://abcnews.com/GMA/Culture/demi-lovato-perform-song-grammys-wrote-shortly-2018/story?id=68505121","legacySlug":"/culture/story/demi-lovato-perform-song-grammys-wrote-shortly-2018-68505121","noIndexNoFollow":false},"publishTime":"03:30","publishDate":"01-27-2020","updatedTime":"12:19","updatedDate":"01-27-2020","socialImage":{"alt":"Demi Lovato performs onstage during the 62nd Annual Grammy Awards at Staples Center on January 26, 2020 in Los Angeles, California.","credit":"Kevin Winter/Getty Images","ratio":"16x9","url":"https://s.abcnews.com/images/US/demi-02-as-gty-200126_hpMain_16x9_1600.jpg","width":992,"height":558},"datePublished":"1/27/2020 03:30:00 GMT","video":{"live":false,"id":68505121,"headline":"Demi Lovato performs new song at Grammys","mediaAssetTitle":"DEMI LOVATO GRAMMYS SONG","description":"Lovato gave an emotional performance at the 2020 Grammy Awards.","duration":"1:58","posterImg":{"url":"https://s.abcnews.com/images/GMA/default-img-undefined.png","width":608,"height":342},"video":{"feed":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2020/01/200127_wnn_ganss_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8"},"playlist":["68276548","66980353","68326131"]},"relatedItems":[{"contentType":"story","date":"January 14, 2020","headline":"Demi Lovato to perform at the Grammy Awards ","section":"culture","slug":"/culture/story/demi-lovato-give-major-public-performance-2018-overdose-68276548","id":68276548,"image":{"alt":"Demi Lovato to perform at the Grammy Awards ","url":"https://s.abcnews.com/images/GMA/demi-lovato-file-rx-jef-200114_hpMain_4x3t_240.jpg","credit":"Jose Sena Goulao/EPA via Shutterstock","ratio":"1x1"}},{"contentType":"story","date":"November 13, 2019","headline":"Alicia Keys to host Grammys for 2nd year in a row","section":"culture","slug":"/culture/story/alicia-keys-host-grammys-2nd-year-row-66980353","id":66980353,"image":{"alt":"Alicia Keys to host Grammys for 2nd year in a row","url":"https://s.abcnews.com/images/GMA/alicia-keys-gty-jt-191113_hpMain_4x3t_240.jpg","credit":"Kevin Winter/Getty Images for HFA","ratio":"1x1"}},{"contentType":"story","date":"January 16, 2020","headline":"Demi Lovato to sing the national anthem at the Super Bowl","section":"culture","slug":"/culture/story/demi-lovato-sing-national-anthem-super-bowl-68326131","id":68326131,"image":{"alt":"Demi Lovato to sing the national anthem at the Super Bowl","url":"https://s.abcnews.com/images/GMA/demi-lovato-gty-aa-191122_hpMain_4x3t_240.jpg","credit":"Rich Fury/Getty Images, FILE","ratio":"1x1"}}],"relatedContentSection":"news","schemaContent":{"name":"Demi Lovato performs new song at Grammys","description":"Lovato gave an emotional performance at the 2020 Grammy Awards.","duration":"1:58","uploadDate":"01-27-2020","publication":"01-27-2020","images":"https://s.abcnews.com/images/GMA/default-img-undefined.png","url":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2020/01/200127_wnn_ganss_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","contentUrl":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2020/01/200127_wnn_ganss_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","link":"https://www.goodmorningamerica.com/culture/story/demi-lovato-perform-song-grammys-wrote-shortly-2018-68505121"}},"playlist":[{"id":"133179167","contentType":"story","section":"news"},{"id":"133144373","contentType":"story","section":"news"},{"id":"133144059","contentType":"story","section":"news"},{"id":"133143081","contentType":"story","section":"news"},{"id":"133075455","contentType":"story","section":"news"},{"id":"133063114","contentType":"story","section":"news"},{"id":"133063086","contentType":"story","section":"news"},{"id":"133015093","contentType":"story","section":"news"},{"id":"132998564","contentType":"story","section":"news"},{"id":"132998072","contentType":"story","section":"news"},{"id":"132977374","contentType":"story","section":"news"},{"id":"132977531","contentType":"story","section":"news"},{"id":"132962364","contentType":"story","section":"news"},{"id":"132958371","contentType":"story","section":"news"},{"id":"132932494","contentType":"story","section":"news"},{"id":"132927870","contentType":"story","section":"news"},{"id":"132911868","contentType":"story","section":"news"},{"id":"132911765","contentType":"story","section":"news"},{"id":"132880952","contentType":"story","section":"news"},{"id":"132873763","contentType":"story","section":"news"}],"kvps":{"pgtyp":"article","lang":"en","sp":"goodmorningamerica","programmatic":"true","bundleId":"com.abcnews"}},"analytics":{"accountID":"wdgnewwdgnewgmaweb","ns":"gma","pageName":"gma:culture:video","pageType":"video","globalSpecVersion":"v1.08","siteDifferentiator":"gma:site","tagID":"g_page01","userABCookie":"0","section":"culture","title":"Demi Lovato performs new song at Grammys","pubTime":"22:30","pubDate":"01-26-2020","modTime":"07:19","modDate":"01-27-2020","taxonomyTags":"none","id":68505121,"editorialOtherSubjects":"","wordCount":"none","columns":"none","authors":"","authorsUnit":"none","authorsBureau":"none","subBrand":"Good Morning America","provider":"Good Morning America","videoName":"Demi Lovato performs new song at Grammys","mediaAssetTitle":"DEMI LOVATO GRAMMYS SONG","videoId":68505121,"mediaOnPage":"video","legacySlug":"/culture/story/demi-lovato-perform-song-grammys-wrote-shortly-2018-68505121"},"taboola":{}},"request":{"headers":{},"httpVersion":"1.1","method":"GET","url":"/video/68505121","vary":{"host":"www.goodmorningamerica.com","cached":true,"path":"/video/68505121","forwarded-proto":"https","device":"desktop","userab":"0"}},"viewport":{"width":1260,"height":0},"user":{}};