1
0

default_scenario.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. {
  2. "schema_version": 1,
  3. "name": "default-scenario",
  4. "description": "This scenario has a few agents to get you started. Feel free to change them or delete them as you see fit!",
  5. "source_url": false,
  6. "guid": "ee4299225e6531c401a8bbbce0771ce4",
  7. "tag_fg_color": "#ffffff",
  8. "tag_bg_color": "#5bc0de",
  9. "exported_at": "2016-04-03T18:24:42Z",
  10. "agents": [
  11. {
  12. "type": "Agents::TriggerAgent",
  13. "name": "Rain Notifier",
  14. "disabled": false,
  15. "guid": "361ee2e955d4726b52c8b044d4f75e25",
  16. "options": {
  17. "expected_receive_period_in_days": "2",
  18. "rules": [
  19. {
  20. "type": "regex",
  21. "value": "rain|storm",
  22. "path": "conditions"
  23. }
  24. ],
  25. "message": "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
  26. },
  27. "keep_events_for": 0,
  28. "propagate_immediately": false
  29. },
  30. {
  31. "type": "Agents::WebsiteAgent",
  32. "name": "XKCD Source",
  33. "disabled": false,
  34. "guid": "505c9bba65507c40e5786afff36f688c",
  35. "options": {
  36. "url": "https://xkcd.com",
  37. "mode": "on_change",
  38. "expected_update_period_in_days": 5,
  39. "extract": {
  40. "url": {
  41. "css": "#comic img",
  42. "value": "@src"
  43. },
  44. "title": {
  45. "css": "#comic img",
  46. "value": "@alt"
  47. },
  48. "hovertext": {
  49. "css": "#comic img",
  50. "value": "@title"
  51. }
  52. }
  53. },
  54. "schedule": "every_1d",
  55. "keep_events_for": 0,
  56. "propagate_immediately": false
  57. },
  58. {
  59. "type": "Agents::EmailDigestAgent",
  60. "name": "Afternoon Digest",
  61. "disabled": false,
  62. "guid": "65e8ae4533881537de3c346b5178b75d",
  63. "options": {
  64. "subject": "Your Afternoon Digest",
  65. "expected_receive_period_in_days": "7"
  66. },
  67. "schedule": "5pm",
  68. "propagate_immediately": false
  69. },
  70. {
  71. "type": "Agents::EmailDigestAgent",
  72. "name": "Morning Digest",
  73. "disabled": false,
  74. "guid": "b34eaee75d8dc67843c3bd257c213852",
  75. "options": {
  76. "subject": "Your Morning Digest",
  77. "expected_receive_period_in_days": "30"
  78. },
  79. "schedule": "6am",
  80. "propagate_immediately": false
  81. },
  82. {
  83. "type": "Agents::WeatherAgent",
  84. "name": "SF Weather Agent",
  85. "disabled": false,
  86. "guid": "bdae6dfdf9d01a123ddd513e695fd466",
  87. "options": {
  88. "location": "42.3601,-71.0589",
  89. "api_key": "put-your-key-here"
  90. },
  91. "schedule": "10pm",
  92. "keep_events_for": 0
  93. },
  94. {
  95. "type": "Agents::WebsiteAgent",
  96. "name": "iTunes Trailer Source",
  97. "disabled": false,
  98. "guid": "e9afa65457d0a736b9ec20a8dd452fc8",
  99. "options": {
  100. "url": "https://trailers.apple.com/trailers/home/rss/newtrailers.rss",
  101. "mode": "on_change",
  102. "type": "xml",
  103. "expected_update_period_in_days": 5,
  104. "extract": {
  105. "title": {
  106. "css": "item title",
  107. "value": "string(.)"
  108. },
  109. "url": {
  110. "css": "item link",
  111. "value": "string(.)"
  112. }
  113. }
  114. },
  115. "schedule": "every_1d",
  116. "keep_events_for": 0,
  117. "propagate_immediately": false
  118. },
  119. {
  120. "type": "Agents::EventFormattingAgent",
  121. "name": "Comic Formatter",
  122. "disabled": false,
  123. "guid": "d86b069650edadfc61db9df767c8b65c",
  124. "options": {
  125. "instructions": {
  126. "message": "<h2>{{title}}</h2><img src=\"https:{{url}}\"/> <p>{{hovertext}}</p>"
  127. },
  128. "matchers": [
  129. ],
  130. "mode": "clean"
  131. },
  132. "keep_events_for": 2592000,
  133. "propagate_immediately": false
  134. }
  135. ],
  136. "links": [
  137. {
  138. "source": 0,
  139. "receiver": 3
  140. },
  141. {
  142. "source": 1,
  143. "receiver": 6
  144. },
  145. {
  146. "source": 4,
  147. "receiver": 0
  148. },
  149. {
  150. "source": 5,
  151. "receiver": 2
  152. },
  153. {
  154. "source": 6,
  155. "receiver": 2
  156. }
  157. ],
  158. "control_links": [
  159. ]
  160. }