{"action":"opened","issue":{"url":"https://api.github.com/repos/Twilio-org/rapid-response-kit/issues/26","repository_url":"https://api.github.com/repos/Twilio-org/rapid-response-kit","labels_url":"https://api.github.com/repos/Twilio-org/rapid-response-kit/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Twilio-org/rapid-response-kit/issues/26/comments","events_url":"https://api.github.com/repos/Twilio-org/rapid-response-kit/issues/26/events","html_url":"https://github.com/Twilio-org/rapid-response-kit/issues/26","id":260801208,"number":26,"title":"\"Remote Data Collection\" IVR Template","user":{"login":"kwhinnery","id":29193,"avatar_url":"https://avatars3.githubusercontent.com/u/29193?v=4","gravatar_id":"","url":"https://api.github.com/users/kwhinnery","html_url":"https://github.com/kwhinnery","followers_url":"https://api.github.com/users/kwhinnery/followers","following_url":"https://api.github.com/users/kwhinnery/following{/other_user}","gists_url":"https://api.github.com/users/kwhinnery/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhinnery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhinnery/subscriptions","organizations_url":"https://api.github.com/users/kwhinnery/orgs","repos_url":"https://api.github.com/users/kwhinnery/repos","events_url":"https://api.github.com/users/kwhinnery/events{/privacy}","received_events_url":"https://api.github.com/users/kwhinnery/received_events","type":"User","site_admin":false},"labels":[{"id":703803279,"url":"https://api.github.com/repos/Twilio-org/rapid-response-kit/labels/functions","name":"functions","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-26T23:31:42Z","updated_at":"2017-09-26T23:31:42Z","closed_at":null,"author_association":"OWNER","body":"A frequent need for organizations doing field work is collecting data when using web or mobile apps is impractical or impossible, but mobile connectivity is still available. Create a Function template that will take a JavaScript object literal configured with survey questions, and sequentially take the user through completing the survey via IVR. \r\n\r\nPersistence should be Twilio Sync or cookies as needed. Survey responses in Sync should minimally include the responses to any questions asked and a timestamp. Speech responses should store recording and transcriptions of the responses.\r\n\r\nAn example survey config object might look like:\r\n```javascript\r\nconst questions = [\r\n  {\r\n    question: 'Does anyone near you require medical attention?',\r\n    type: 'boolean'\r\n  },\r\n  {\r\n    question: 'How many people require medical attention?',\r\n    type: 'number'\r\n  },\r\n  {\r\n    question: 'Is there anything else first responders should be aware of?',\r\n    type: 'speech'\r\n  }\r\n]\r\n```\r\n\r\nAdditionally, it should be possible for administrators to visit a web page to visualize the results of the survey in tabular form, and play back recordings of voice responses. We should create an Asset HTML page which will use Sync to pull survey results and display them."}}
{"actor":{"display_login":"kwhinnery"}}