Answers are grounded in this paper and cite their sources.
The proliferation of Internet of Things (IoT) devices has led to an increasing reliance on trigger-action rules for home automation. However, creating these rules in structured formats remains challenging for users who prefer natural language expressions. We present Ruleengine, a tool leveraging Large Language Models (LLMs) to translate natural language descriptionsinto valid IoT automation rules with platform specific format. Our approach introduces three key innovations: (1) a structured prompt engineering framework combining explicit output structuring and semantic constraint definition, (2) a RAG- based architecture enhanced with semantic search and contextual re-ranking for improved rule generation, and (3) a context-aware safety scoring mechanism that evaluates rules across trigger conditions and action implications. Through empirical evaluation across multiple LLMs using real-world datasets, we demonstrate substantial improvements in both syntactic and semantic validity of generated rules, while successfully identifying safety violations in generated rules. We conduct a comprehensive study on performance analysis across different LLMs, prompt engineering strategies, embedding techniques, and RAG configurations, revealing interesting trade-offs between accuracy, latency, and computational efficiency in automated rule generation.
No takes yet. Share an insight, caveat, or question.
Islam et al. (2025) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: