Twitter API examples & templates
Use these vals as a playground to view and fork Twitter API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
yawnxyz
squishyform
HTTP
- this version collects data from three ways: a free-form paragraph, a JSON text area, or a table (mimicking a form)
- it's really tempting to create a form that lets people "write anything" in a text box and have the data properly formatted by the AI, it's still kind of an accessibility nightmare.
- I can see this appearing everywhere, maybe for the novelty, but current forms with labels and ARIA etc. will still reign supreme for data-heavy bureaucratic data collection tasks
- for casual inputs though like guest books this could be a simpler alternative
- for "real data applications" like collecting info for shipping and CC, still use a "real" form
- for "real applications" this can still be used to catch errors quickly, like misspellings (which happen a LOT)
- using a really fast/cheap model like llama3.1 8b (or even smaller) is a good use case, but it should support structured outputs
0
thesephist
prism_feature_notifications
Cron
Sparse autoencoder feature of the day email This Val sends a daily notification email at the start of every day with a random high confidence (> 0.8) feature drawn from my sparse autoencoders project that tries to find interpretable directions in the latent space of embedding models. It sends you an email with a brief description of the feature and a link to view more. Here's an example email from this Val:
Every time you run it, you'll get a different feature. By default, this uses the lg-v6 model, which I think is a good one to start with, but this may change in the future as I train better feature dictionaries!
0
andreterron
updateTidbytWorkout
Script
Update Tidbyt workouts Updates a Tidbyt with workout information: For more information, watch the YouTube video or reach out to me on Twitter ! Usage Fork this val. Update the byDay variable to get your workout information for each day of the current and previous week. If you want to use a rule different than "Don't skip twice", you can fork and update the weekWorkoutIcons val.
0
bohaska
nationstatesSentimentAI
Cron
Automatically answers issues from NationStates using AI sentiment analysis, for free! Requires: Huggingface token (HF_TOKEN) for the sentiment analysis of options. Generate a read-only token at Huggingface after making an account to use. Email address (EMAIL) for user agent. Required as per NationStates ToS Autologin token (AUTOLOGIN) for logging into NationStates. See NationStates API docs for more info. Nation name (NATION_ID). Put your nation name, the one you use when you login to your account. Selects the option with the highest positivity score. Feel free to adapt the algorithm to your own tastes. See the Republic of Positivum for an example of this val in action.
0