ASK CLIでAlexaとLambdaを簡単管理

Ed7cfa6e677273f67096dc8f03c8a671?s=47 tochi
November 03, 2018

ASK CLIでAlexaとLambdaを簡単管理

JAWS FESTA 2018 Osaka

資料内の動画も含んだ内容はこちら
https://www.aguuu.com/archives/2018/11/jawsfesta2018osaka/

Ed7cfa6e677273f67096dc8f03c8a671?s=128

tochi

November 03, 2018
Tweet

Transcript

  1. "4,$-*Ͱ "MFYBͱ-BNCEBΛ؆୯؅ཧ +"84'&45"04","

  2. 1SPGJMF

  3. 5PNPZVLJ 5PDIJIJSB 5XJUUFS!BHVVV (JUIVCUPDIJ ԬࢁݝԬࢁࢢࡏॅ +"846(ԬࢁίΞϝϯόʔ גࣜձࣾ%*(*5"-+&5ʢ෺ཧࣾһʣ גࣜձࣾιχοΫΨʔσϯʢ࿦ཧࣾһʣ

  4. Զ͕ͨͪ஌Γ͔ͨͬͨ "MFYBͷ࿩ 8SJUFS ɾ5PNPIBSV*UP ɾ5PNPZVLJ5PDIJIJSB ɾ)JEFUBLB0LBNPUP %FTJHOFS ɾ"UTVTIJ"OEP

  5. "4,$-*

  6. "4,$-* ɾ"MFYB4LJMMT,JU$PNNBOE-JOF*OUFSGBDF ɾ5BSHFUSFTPVSDFT ɹɾ"MFYB4LJMM ɹɾ-BNCEB ɹɾ$MPVE8BUDI-PHT

  7. 5FSNJOBM "MFYB4LJMM

  8. "4,$-* ɾ"MFYB4LJMM ɹɾ೔ຊޠɺӳޠɺଞΧࠃ ɾ-BNCEB ɹɾ/PEFKTɺ"4,4%,7

  9. #FOFGJU ɾ"NB[PO"MFYB4LJMMͱ"84-BNCEBΛҰׅ؅ཧ ɾϦιʔεΛHJUͰ؅ཧ

  10. /FX %FQMPZ

  11. 2VJDL4UBSU BTLOFXOGFTUB DEGFTUB BTLEFQMPZ ɾ"MFYBεΩϧͷ਽ܗ࡞੒ ɾ"MFYBεΩϧͱ-BNCEBΛσϓϩΠ

  12. %FNP

  13. 0UIFST

  14. BTLOFX BTLOFXUFNQMBUFOGFTUB ɾ#VUUPOT$PMPS$IBOHFS ɾ$JUZ(VJEF ɾ%FDJTJPO5SFF ɾ'BDU ɾ'FFE ɾ'PPEJF ɾ)JHI-PX(BNF ɾॳظͷߏ੒ΛςϯϓϨʔτ͔Βબ୒Մೳ

    IUUQTHJUIVCDPNBMFYB
  15. BTLEFQMPZ BTLEFQMPZU<UBSHFU> ɾBMM ɾMBNCEB ɾTLJMM ɾNPEFM ɾJTQ ɾσϓϩΠͰࢦఆͰ͖Δλʔήοτ͸छྨ

  16. BTLDMPOF BTLDMPOFTBN[OBTLTLJMMYYY ɾطଘͷ"MFYBεΩϧͱ-BNCEBΛϩʔΧϧʹऔಘ

  17. BTLEJGG BTLEJ⒎ ɾϩʔΧϧͱϦϞʔτͷࠩ෼Λදࣔ

  18. BTLTJNVMBUF BTLTJNVMBUFUbΞϨΫαHSFFUFSΛ։͍ͯ`MKB+1 ɾ"MFYBεΩϧͷൃ࿩ςετΛ࣮ߦ

  19. BTLTJNVMBUF5FTU const assert = require(’power-assert’) const { execFile } =

    require(’child_process’) describe(’test by ask-cli’, () => { it(’should return valid response when send invocation name’, (done) => { execFile(’ask’, [ ’simulate’, ’-s’, ’amzn1.ask.skill.xxx’, ’-l’, ’en-US’, ’-t’, ’open greeter’ ], (error, stdout, stderr) => { if (error) { assert.deepEqual(error, {}) } else { const { result } = JSON.parse(stdout) const { invocationResponse } = result.skillExecutionInfo const { response } = invocationResponse.body assert.equal(response.card.content.indexOf(’<p>’), -1) assert.equal(response.card.content.indexOf(’undefined’), -1) } done() }) }) }) Ҿ༻ɿԶ͕ͨͪ஌Γͨͳ͔ͬͨ"MFYBͷ࿩
  20. BTLBQJTVCNJU BTLBQJTVCNJUTBN[OBTLTLJMMYYY ɾ"MFYBεΩϧͷެ։ਃ੥

  21. BTLBQJXJUIESBX BTLBQJXJUIESBXTBN[OBTLTLJMMYYY ɾ"MFYBεΩϧͷެ։औΓԼ͛

  22. 1SPCMFN

  23. -BNCEBSFHJPO ɾσϑΥϧτͷϦʔδϣϯ͸όʔδχΞ ɾ-BNCEBͷϦʔδϣϯΛ౦ژ͚ͩʹ͢Δͷ͸೉͍͠

  24. -BNCEBBMJBT ɾ-BNCEBͷΤΠϦΞεͷࢦఆ͕Ͱ͖ͳ͍

  25. 4". PS 4FSWFSMFTT'SBNFXPSL

  26. "844". ɾ-BNCEBͷ؅ཧ͕Մೳ ɾ%ZOBNP%#ͷ؅ཧ͕Մೳ ɾ"MFYBεΩϧͷ؅ཧʹ͸ະରԠ

  27. 4FSWFSMFTT 'SBNFXPSL ɾ-BNCEBͷ؅ཧ͕Մೳ ɾ%ZOBNP%#ͷ؅ཧ͕Մೳ ɾϓϥάΠϯΛೖΕΕ͹"MFYBεΩϧͷ؅ཧ͕Մೳ ɹɾTFSWFSMFTTBMFYBTLJMMT

  28. $PODMVTJPO

  29. "4,$-* ˓˓˓ ɾεΩϧ ɹɾ"4,$-* ɾ-BNCEB ɹɾ4". ɹɾ4FSWFSMFTT'SBNFXPSL

  30. -FU`TFOKPZ"MFYB