Overview
"Text from URL" is an advanced autoreply option within our Keywords app. This feature allows you to to dynamically generate autoreplies for SMS keywords using text content from a specified URL.
Functionality
Setting Up "Text from URL"
- Keyword Assignment: First, set up a specific keyword within the Keywords app.
- URL Specification: In the autoreply options, select "Text from URL" and input the desired URL.
How It Works
- CURL Request: Upon activation of the keyword, our system executes a CURL command to send a GET request to the provided URL.
- Response Requirements:
- Response Code: Must receive a 200 response code, indicating successful retrieval.
- Content-Type: The content must be 'text/plain'.
- Response Body: Only plain text is accepted. HTML markup or other formats are not allowed. The content should be a flat plain-text response.
Autoreply Generation
- Successful Retrieval: If the above conditions are met, the text obtained from the URL is used as the autoreply message.
- Failure Handling: In cases where any condition is not met, the autoreply will not be generated, and no message will be sent.
Use Cases
Ideal for situations where autoreply content needs to be frequently updated or is dependent on external data sources. Common use cases include:
- Dynamic promotional messages.
- Real-time updates or alerts, such as school closures.
- Customized responses based on external data, such as responding with your most recently played songs.
Limitations and Support
Regarding scripting assistance, it's important to note that our support team typically does not engage in writing or testing scripts for the "Text from URL" feature. This falls outside the usual scope of our support services. However, we understand that certain situations might require a bit of extra help. In these exceptional cases, we are open to providing limited assistance.
As for the technical know-how required for this feature, we anticipate that our clients possess a basic understanding of web technologies. This foundational knowledge is crucial for effectively utilizing the "Text from URL" option. It ensures that clients can properly set up the feature and troubleshoot basic issues that may arise.
Best Practices
- Ensure URL stability and accessibility.
- Regularly update and monitor the text content at the specified URL.
- Test the feature thoroughly before deploying it in a live environment.
Troubleshooting
- URL Accessibility: Ensure the URL is accessible and returns the correct response code.
- Content Check: Verify that the URL content is in plain text format without any HTML or other markup.
- Keyword Configuration: Double-check the keyword and URL mapping within the app.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article