It seems like you’re trying to return a TeXML response from your Pipedream workflow. To do this, you need to set the appropriate content type and return the response using the $respond function. Here’s an updated version of your code: ```
export default { name: “Handle Inbound Call with TeXML”, async run(event, { $ }) { try { const recipientPhoneNumber = ‘+PHONE NUMBER’; const callerPhoneNumber = ‘PHONE NUMBER’; const texmlResponse = <?xml version="1.0" encoding="UTF-8"?> <Response> <Dial callerId="${callerPhoneNumber}"> <Number>${recipientPhoneNumber}</Number> </Dial> </Response>; return $respond({ status: 200, immediate: true, headers: { “Content-Type”: “application/xml”, }, body: texmlResponse, }); } catch (error) { console.error(error); } }, };