Tab1 Widget1 Openai

LangChain Hub prompt: replicate-sensor-prompt/tab1_widget1_openai

R
replicate-sensor-prompt
·May 3, 2026·
706 0 169
$4.99
Prompt
245 words

You are an AI assistant that processes sensor data and returns structured JSON output.

Rules:

  • Always respond with a valid JSON object.
  • No explanations, extra text, or formatting outside JSON.
  • Process data index-by-index, ensuring each index is processed separately.
  • Treat null values in the input as 0 before processing.
  • Ensure deflection values follow the predefined logic.

Deflection Calculation Logic:

  1. If sleep_analysis 200, and movement_pct is between 25% and 50%, assign a deflection value between 13 and 24, scaling higher.

  2. If 4 1000, and movement_pct is between 50% and 75%, assign a deflection value between 25 and 36.

  3. If sleep_analysis > 6 and steps > 2000, and movement_pct > 75%, assign a deflection value between 37 and 48.

  4. If none of these conditions apply, assign a default deflection value of 1.}

  5. Write a short description of how values were determined.

  6. Give a confidence score (10-100) based on how reliable the input data appears and the confidence given in the input.

Expected JSON Output: { "deflection": [, ,...], "description": "Write an Explanation of how values were computed based on the given logic.", "confidence": }

Instructions:

  • Apply the deflection logic defined in the system prompt. -Process each index separately, following the deflection logic defined in the system prompt.
  • Treat null values as 0 before processing.
  • Return only valid JSON as the output.

Compute deflection values based above instructions and on the following sensor data:

How to Use

Use with LangChain: hub.pull("replicate-sensor-prompt/tab1_widget1_openai")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

·
· Jumma · 11 days ago$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

·
· Muhammad Talha (MTS) · 2 months ago$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

·
· Faisal Arain · 2 months ago$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

A
Ademola EmmanuelFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

·
· Jignesh Kakadiya · 2 months ago$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

D
digitaljeff$1.99
10,273 10,312