ãä»äºã®ããã®ä»äºãã£ãŠçµæ§å€ããã
ç§ã¯ã°ã«ãŒãäžåœå°å£²äºæ¥ãžã®ååäŸçµŠãããç©æµæ©èœäŒç€Ÿã®çµå¶ãããŠããŸãã
ã³ããçã£çãã®ææã«ç€Ÿé·ãšããŠäžåœé§åšãšãªã£ãŠãããã2幎ãããããã«ã¯æ¥åããé©æ°ããããïŒãšé«ãå¿ãšææ°èŸŒã¿ã§ä¹ã蟌ãã ãã®ã®ãæ¬æ¥ããã¹ãä»äºãããããã®ææãšã¯ããŸãé¢ä¿ããªãä»äºã«ããããæéããšãããŠãŸãããïŒ
ðç§ãšæ¥åã®ã玹ä»ãååäœæã®ããŒã«ã§ãããããããã°ãç«ã¡å¯ããã ããïŒ
èªåã®åšãã®æ¥åå 容ãã®ãããŠã¿ããïŒ
æ¥åãé©æ°ããŠãããïŒãšããç§ã®ææ°èŸŒã¿ãšã¯ããã¯ãã«ããªããªãæ¬æ¥ããããä»äºã«æéãæå ¥ã§ããŠããªãã®ãçŸå®ãã§ã¯ãã£ããã©ããªä»äºã«æéãåãããŠãããã ããïŒãŸãã¯ç§ã®ã¢ã·ã¹ã¿ã³ãããã®æ¥åã«ãã©ãŒã«ã¹ããŠã¿ãŸããã
äŒè°ãšååŸã®æ¥åã®ã€ã¡ãŒãž
1æéã®äŒè°ã«ãã£ããã©ãã ãã®ç¡é§ãªæéãã€ããããŠãã®ã ããïŒïŒ
ä»ååãçµãã ãå°ããªæ¥åæ¹åã¯ããäŒè°é£çµ¡é£çµ¡ããŒã«ãã®äœæã§ãã
äž»èŠãªäŒè°ã¯å¹ŽåºŠã§èšç»ãããåºæ¬çã«ã¯å¹ŽåºŠéå§åã«ãã°ã«ãŒãæ¬ç€Ÿã芪äŒç€Ÿãã°ã«ãŒãå
é¢é£äŒæ¥ãšèª¿æŽã®ãã幎éæ床å¥ã¹ã±ãžã¥ãŒã«ãäœæããŸããç¶ããŠãã®ã¹ã±ãžã¥ãŒã«ãšéè€ããªãããã«ç€Ÿå
äŒè°ã¹ã±ãžã¥ãŒã«ãäœæããŸããããããã®äŒè°ã«ã¯åå è
ã決ãŸã£ãŠããŸãã
ã»å¹Žéã¹ã±ãžã¥ãŒã«ïŒã°ã«ãŒãæ¬ç€Ÿã芪äŒç€Ÿãã°ã«ãŒãå
é¢é£äŒæ¥ãšèª¿æŽã®äžãèªç€Ÿã®ã¹ã±ãžã¥ãŒã«ãå ããŠå¹Žéæ床å¥ã¹ã±ãžã¥ãŒã«ãäœæã幎床éå§åã«äœæã
ã»æéã¹ã±ãžã¥ãŒã«ïŒå¹Žéã¹ã±ãžã¥ãŒã«ãããšã«æéã®ã€ãã³ããäœæãåæ床20æ¥ããäœæã
ã»äœæããã¹ã±ãžã¥ãŒã«ããšã¯ã»ã«ã§éèšãã¡ã³ããŒã«ã¡ãŒã«é
ä¿¡
ã»åºæ¬ åžã¯ç¢ºèªã§ããŠããªã
äŒè°å®æœã«ã¯ãäŒè°è³æã®äœæå«ãéåžžã«å€ãã®æéãããããŸããããã«ã¯ãäŒè°ã®åå·¥çšãšããŠã¹ã±ãžã¥ãŒã«èª¿æŽãåå è ã®åºæ¬ 確èªãæ¡å ãåŸå·¥çšãšããŠè°äºé²ã®äœæãéä»ãªã©äŒè°ã®å 容ãšææã«ã¯ããŸãé¢ä¿ããªããããªãäºåã»èª¿æŽæ¥åããå€æ°çºçããŠããããšãããããŸãããã¢ã·ã¹ã¿ã³ãããã¯ãããšã¯ã»ã«ãã¯ãŒããEã¡ãŒã«ãé§äœ¿ããŠã¢ããã°äœæ¥ãè¡ã£ãŠãããæ¬æ¥æåŸ ããŠããå¥ã®ã¡ã€ã³æ¥åã«åœ±é¿ããŠããããšãããããŸããã
ããã§ãä»åã¯ç§ã®æ¥åæ¹åããŒã«äœæ第äºåŒŸã¯
- ãäŒè°é£çµ¡ããŒã«ãäœæ
ãäŒè°é£çµ¡ããŒã«ãã®å®æå
äŒè°ã®ç¢ºèªã¯å¹Žéã¹ã±ãžã¥ãŒã«ã§æ±ºãŸã£ãŠãã次æã®äŒè°ã¹ã±ãžã¥ãŒã«ããåæ20æ¥ã«åå 察象è
å人ã«Emailé£çµ¡ããåºåžã»æ¬ åžã»æªå®ãã¢ããªäžã§ç¢ºèªããŸãã
ã¢ããªã§å
¥åããåºæ¬ åžæ
å ±ãããšã«ãå
±æãããGoogleã«ã¬ã³ããŒã«äŒè°ããšã®åå è
ãèªååæ ãããŸãã
åã¡ã³ããŒã¯å
±æã«ã¬ã³ããŒã«ã¢ã¯ã»ã¹ããããšã§ãã©ã®äŒè°ã«ã©ã®ã¡ã³ããŒãåå ããã®ã確èªã§ããŸãã
ïŒå·Šç»åïŒå
šäœã®æ§é
ïŒå³äžåç»ïŒæ¬¡æ床ã®äŒè°ã¹ã±ãžã¥ãŒã«ã®æ¡å
ãšåºæ¬ 確èªã®éèšãèªåã§ã§ããŸããïŒ
ïŒå³äžåç»ïŒã«ã¬ã³ããŒã§å€æŽã®åæ ã確èªã§ããŸããïŒ
䟿å®äžä»®ã®ã¡ã³ããŒ4åã§èšå®ããŠããŸãã
䜿çšããŒã«
ã»Google Spread Sheets
ã»Google Apps Script
ã»Google AppSheet
ã»Google ã«ã¬ã³ããŒ
ã»ChatGPT
Apps Sheetã®å©çšã¯Spread Sheetsã®ããŒã¿ããŒãã«ãå©çšããã¢ããªäœæãšãæçµçã«AppScriptã§GASã䜿ã£ãŠã«ã¬ã³ããŒãžã®åæ ãããã«ããã芪åæ§ãèæ ®ããŠéžæããŸããã
äŒè°é£çµ¡ããŒã«ã®æ§é
â ïœâŠã¯æ å ±ã®æµããè¡šããŠããŸããäœæå·¥çš
- äŒè°é£çµ¡ããŒã«ã®äŒç»
- ããŒã¿ããŒãã«ã®äœæ
Google Driveã®Google Spread Sheetsãå©çšããŠããŒã¿ããŒãã«ãäœæããŸãã - äŒè°é£çµ¡ããŒã«ã®äœæ
ããŒã¿ããŒãã«æ å ±ãåºã«Google AppsSheetãå©çšããŠãäŒè°é£çµ¡ã¢ããªãäœæ - åã¡ã³ããŒãžã®é£çµ¡
Google Apps Scriptã®ã·ã§ã¢æ©èœãå©çšããŠåã¡ã³ããŒã«äŒè°é£çµ¡ã¢ããªã®ã¡ãŒã«é£çµ¡ - åã¡ã³ããŒã®äŒè°ã¹ã±ãžã¥ãŒã«ç¢ºèªãšåºæ¬ ã®å
¥å
åã¡ã³ããŒãããããéä¿¡ãããã¡ãŒã«ããäŒè°é£çµ¡ã¢ããªãéããäŒè°ã¹ã±ãžã¥ãŒã«ã確èªãããšãšãã«èªèº«ã®åºæ¬ ãã¢ããªäžã§ç»é² - åºæ¬ ã®éèš
äŒè°é£çµ¡äžã®åºæ¬ ç»é²ã¯Appsheetãçµç±ãGoogle Spread Sheetsã®ããŒã¿ããŒãã«ã«èªååæ - Google ã«ã¬ã³ããŒãžã®åæ
ããŒã¿ããŒãã«ã«åæ ããäŒè°æ å ±ãGoogle Apps Scriptã®GASãå©çšãGoogle ã«ã¬ã³ããŒã«ãããèªååæ ïŒGASäœæã¯ChatGPTå©çšïŒ
1. äŒè°é£çµ¡ããŒã«ã®äŒç»ã®äŒç»
ãšã¯ã»ã«ç®¡çããŠãã幎éã¹ã±ãžã¥ãŒã«ãããŒã¿ããŒã¹åããåå è
æ
å ±ãšçµã¿åãããŠç®¡çããŸãã
ã¢ãŠããããã¯å
±æããGoogleãã«ã¬ã³ããŒã䜿çšããããšã§ãåžžã«æ°ããäŒè°ã¹ã±ãžã¥ãŒã«ãšåå è
æ
å ±ãã¡ã³ããŒãšå
±æããŸãã
2. ããŒã¿ããŒãã«ã®äœæ
Google Driveã®Google Spread Sheetsãå©çšããŠããŒã¿ããŒãã«ãäœæããŸãã
åçš®æ
å ±ã¯äººå¡å¢å æãªã©ã®ã¡ã³ããã³ã¹ãèæ
®ããã·ãŒããåããŠäœæããã·ãŒã1ã«ä»ã®ã·ãŒãã®æ
å ±ãéçŽããããŒã¿ããŒã¹ãšããŸããã
ã·ãŒã | ã·ãŒãã®å 容 |
---|---|
äŒè°ã®å®æœæ¥ãåå è ãéå§æéãçµäºæéãã€ãã³ããåºæ¬ æ å ±ããŸãšããä»ã®3ã·ãŒãããŸãšããè¡š | |
ã€ãã³ã | ã€ãã³ããå®æœæ¥ã éå§æéãçµäºæéæ å ± |
åç°¿ | ååãã¡ãŒã«ã¢ãã¬ã¹æ å ± |
åå è | ã€ãã³ããåå è æ å ± |
3. äŒè°é£çµ¡ããŒã«ã®äœæ
ããŒã¿ããŒãã«æ
å ±ãåºã«Google AppSheetãå©çšããŠãäŒè°é£çµ¡ã¢ããªãäœæããŸãã
ä»åã¯åºæ¬ ã®ç¢ºèªã®ãããŠãŒã¶ãŒããã®ä¿®æ£ã¯åºæ¬ ã®ã¿ãšããŸãããããã£ãŠãEDITã¯âåºæ¬ âã®é
ç®ã®ã¿âãå
¥ããŸãã
4. åã¡ã³ããŒãžã®é£çµ¡
AppsSheetã®ã·ã§ã¢æ©èœã䜿ã£ãŠãåã¡ã³ããŒã«ã¡ãŒã«éä¿¡ããŸãã
çä¿¡ããã¡ãŒã«ããAppSheetã¢ããªã«ã¢ã¯ã»ã¹ããŸãã
ã€ã³ãã©ã¡ãŒã·ã§ã³ã
äžåºŠã¡ãŒã«éä»ãããAPPã¯ã以åŸæŽæ°ãããæ
å ±ãèŠãããšãåºæ¥ãŸãã
ïŒæŽæ°ã®ãã³ã«ã¡ãŒã«éä¿¡äžèŠïŒ
5. åã¡ã³ããŒã®äŒè°ã¹ã±ãžã¥ãŒã«ç¢ºèªãšåºæ¬ ã®å ¥å
ã¢ããªã®ã«ã¬ã³ããŒã§ã¡ã³ããŒåèªãåå äºå®ãšãªã£ãŠããäŒè°ã確èªããŸãã
ããã©ã«ãã¯åºåžãšãªã£ãŠããŸãããæ¬ åžã®å Žåã¯æ¬ åžãã¿ã³ãã¿ããããSAVEããŸãã
6. åºæ¬ ã®éèš
äŒè°é£çµ¡äžã®åºæ¬ ç»é²ã¯Appsheetãçµç±ãGoogle Spread Sheetsã®ããŒã¿ããŒãã«ã«èªååæ ããŸãã
Appäžã§å
¥åããäŒè°ã®æ¬ åžãåæ ããŠããŸãã
7. Google ã«ã¬ã³ããŒãžã®åæ
ã»ããŒã¿ããŒãã«ããGoogle ã«ã¬ã³ããŒãžäŒè°æ å ±åæ ãããGASãäœæ
AppScriptã«ChatGPTãå©çšããŠäœæããGASã貌ãä»ããã
ChatGPTæ瀺çšããã³ãã
â»å®éã«ã¯Apps Scriptå®è¡ãšã©ãŒä¿®æ£ã®ããã®ããã³ããä¿®æ£ãæ°åºŠå®æœ
AppScriptã«èšå ¥ããGAS
function createCalendarEvents() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var eventSheet = spreadsheet.getSheetByName('ã·ãŒã1');
var attendeesSheet = spreadsheet.getSheetByName('åå è
');
var contactsSheet = spreadsheet.getSheetByName('åç°¿');
if (!eventSheet || !attendeesSheet || !contactsSheet) {
Logger.log('æå®ããã·ãŒãåãååšããŸãã: ã·ãŒã1ãåå è
ãŸã㯠åç°¿');
return;
}
Logger.log('ã·ãŒããæ£åžžã«ååŸãããŸãã: ' + eventSheet.getName() + ', ' + attendeesSheet.getName() + ', ' + contactsSheet.getName());
var eventRange = eventSheet.getRange(2, 2, eventSheet.getLastRow() - 1, 5);
var eventData = eventRange.getValues();
Logger.log('ãã£ã«ã¿ãªã³ã°åã®ã€ãã³ãããŒã¿: ' + JSON.stringify(eventData));
var attendeesRange = attendeesSheet.getRange(2, 1, attendeesSheet.getLastRow() - 1, 2);
var attendeesData = attendeesRange.getValues();
var contactsRange = contactsSheet.getRange(2, 1, contactsSheet.getLastRow() - 1, 2);
var contactsData = contactsRange.getValues();
var attendeesMap = createAttendeesMap(attendeesData);
var contactsMap = createContactsMap(contactsData);
// çŸåšã®æãšæ¬¡ã®æã®ã€ãã³ãã®ã¿ããã£ã«ã¿ãªã³ã°
var filteredEventData = eventData.filter(function(event) {
var dateString = event[0];
var date = parseDate(dateString);
Logger.log('解æãããæ¥ä»: ' + date);
return isEventInCurrentOrNextMonth(date);
});
Logger.log('ãã£ã«ã¿ãªã³ã°åŸã®ã€ãã³ãããŒã¿: ' + JSON.stringify(filteredEventData));
// ãããåŠççšã®ããŒã¿ãããããã£ãµãŒãã¹ã«ä¿å
var scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty('eventData', JSON.stringify(filteredEventData));
scriptProperties.setProperty('attendeesMap', JSON.stringify(attendeesMap));
scriptProperties.setProperty('contactsMap', JSON.stringify(contactsMap));
scriptProperties.setProperty('currentIndex', '0');
// ããªã¬ãŒãèšå®ããŠãããåŠçãéå§
ScriptApp.newTrigger('processBatch')
.timeBased()
.everyMinutes(10) // 10åéé
.create();
}
function processBatch() {
var scriptProperties = PropertiesService.getScriptProperties();
var eventData = JSON.parse(scriptProperties.getProperty('eventData'));
var attendeesMap = JSON.parse(scriptProperties.getProperty('attendeesMap'));
var contactsMap = JSON.parse(scriptProperties.getProperty('contactsMap'));
var currentIndex = parseInt(scriptProperties.getProperty('currentIndex'));
var batchSize = 1; // ããããµã€ãºã1ã«èšå®
var calendar = CalendarApp.getCalendarById('yukiono566@gmail.com');
Logger.log('çŸåšã®ã€ã³ããã¯ã¹: ' + currentIndex);
Logger.log('ã€ãã³ãããŒã¿ã®é·ã: ' + eventData.length);
for (var i = currentIndex; i < currentIndex + batchSize && i < eventData.length; i++) {
var dateString = eventData[i][0];
var date = parseDate(dateString);
if (isNaN(date.getTime())) {
Logger.log('ç¡å¹ãªæ¥ä»: ' + dateString);
continue;
}
var startTimeString = eventData[i][2];
var endTimeString = eventData[i][3];
Logger.log('éå§æéæåå: ' + startTimeString);
Logger.log('çµäºæéæåå: ' + endTimeString);
var startTime = new Date(startTimeString);
var endTime = new Date(endTimeString);
Logger.log('éå§æ¥æ: ' + startTime);
Logger.log('çµäºæ¥æ: ' + endTime);
var eventName = eventData[i][4];
var attendeesNames = attendeesMap[eventName];
if (!attendeesNames) {
Logger.log('åå è
æ
å ±ãèŠã€ãããŸãã: ' + eventName);
continue;
}
var attendeesEmails = attendeesNames.map(function(name) { return contactsMap[name]; }).filter(function(email) { return email !== undefined; });
if (attendeesEmails.length === 0) {
Logger.log('åç°¿ã«ã¡ãŒã«ã¢ãã¬ã¹ãèŠã€ãããŸãã: ' + eventName);
continue;
}
Logger.log('ã€ãã³ãäœæäž: ' + eventName + ', éå§: ' + startTime + ', çµäº: ' + endTime + ', åå è
: ' + attendeesEmails.join(','));
var events = calendar.getEventsForDay(startTime);
var duplicateEvent = events.find(function(event) {
return event.getTitle() === eventName && event.getStartTime().getTime() === startTime.getTime() && event.getEndTime().getTime() === endTime.getTime();
});
if (duplicateEvent) {
Logger.log('éè€ããã€ãã³ããèŠã€ãããŸãã: ' + eventName + ', æ¥ä»: ' + startTime);
continue;
}
calendar.createEvent(eventName, startTime, endTime, {
description: 'åå è
: ' + attendeesNames.join(', '),
guests: attendeesEmails.join(',')
});
// åã€ãã³ãäœæåŸã«é
延ãè¿œå
Utilities.sleep(15000); // 15ç§é
延
}
currentIndex += batchSize;
if (currentIndex >= eventData.length) {
// å
šãŠã®ã€ãã³ããåŠçããããããªã¬ãŒãåé€
ScriptApp.getProjectTriggers().forEach(function(trigger) {
if (trigger.getHandlerFunction() === 'processBatch') {
ScriptApp.deleteTrigger(trigger);
}
});
scriptProperties.deleteAllProperties(); // ããããã£ãã¯ãªã¢
Logger.log('ãã¹ãŠã®ã€ãã³ããåŠçãããŸãã');
} else {
// 次ã®ãããã®ã€ã³ããã¯ã¹ãä¿å
scriptProperties.setProperty('currentIndex', currentIndex.toString());
Logger.log('次ã®ãããã®ã€ã³ããã¯ã¹: ' + currentIndex);
}
}
function createAttendeesMap(attendeesData) {
var map = {};
for (var j = 0; j < attendeesData.length; j++) {
var eventName = attendeesData[j][0];
var attendeeName = attendeesData[j][1];
if (!map[eventName]) {
map[eventName] = [];
}
map[eventName].push(attendeeName);
}
return map;
}
function createContactsMap(contactsData) {
var map = {};
for (var k = 0; k < contactsData.length; k++) {
var contactName = contactsData[k][0];
var contactEmail = contactsData[k][1];
map[contactName] = contactEmail;
}
return map;
}
function createDateTime(date, timeString) {
var dateTime = new Date(date);
var timeParts = timeString.split(':');
dateTime.setHours(parseInt(timeParts[0]), parseInt(timeParts[1]), parseInt(timeParts[2]));
return dateTime;
}
function parseDate(dateString) {
Logger.log('解æåã®æ¥ä»æåå: ' + dateString);
var date = new Date(dateString);
if (!isNaN(date.getTime())) {
return date;
}
var parts = dateString.split('-');
if (parts.length === 3) {
return new Date(parts[0], parts[1] - 1, parts[2]);
}
var monthMap = {
"1æ": 0, "2æ": 1, "3æ": 2, "4æ": 3, "5æ": 4, "6æ": 5,
"7æ": 6, "8æ": 7, "9æ": 8, "10æ": 9, "11æ": 10, "12æ": 11
};
for (var month in monthMap) {
if (dateString.indexOf(month) === 0) {
var day = parseInt(dateString.replace(month, '').replace('æ¥', '').trim());
var year = new Date().getFullYear();
return new Date(year, monthMap[month], day);
}
}
return new Date(NaN);
}
function isEventInCurrentOrNextMonth(date) {
var now = new Date();
var currentMonth = now.getMonth();
var currentYear = now.getFullYear();
var eventMonth = date.getMonth();
var eventYear = date.getFullYear();
return (eventYear === currentYear && (eventMonth === currentMonth || eventMonth === currentMonth + 1)) ||
(eventYear === currentYear + 1 && eventMonth === 0 && currentMonth === 11);
}
é·å€§ãªGASã«ãªããŸããããäž»ã«æ¥ä»ã®å¶åŸ¡ãšã«ã¬ã³ããŒã®APIã¬ãŒãå¶éåé¿ã«è¡æ°ãè²»ãããŠããŸãã
泚æ
ã»Googleã«ã¬ã³ããŒã®ããŒã¿å€æŽã¯APIã®ã¬ãŒãå¶éãšãããã®ãããããããèšå
¥ã»åé€ãé床ã«ãªããããšããŒã¿ã®ãããšããå¶éãããŸãã
ã»ãã®ããGASã䜿ã£ãŠäžæ°ã«ããŒã¿ãæµã蟌ãããšããŠããšGASå®è¡ã®éäžã§å®è¡ãåæ¢ããŠããŸããŸãã
ã»å®è¡åæ¢ãåé¿ããããã«ãããŒã¿éãçµãããããåŠçãããªã©ã®å·¥å€«ãå¿
èŠã§ãã
ïŒä»åã¯ã¡ã€ã³ã¹ã¯ãªãããšãããã¹ã¯ãªããã«åå²ãã¡ã€ã³ã¹ã¯ãªãããå®è¡åŸããããã¹ã¯ãªããã¯10åééã§å®æœã«èšå®ãããããµã€ãºã1ãšããåã€ãã³ãäœæåŸã«å°ãé
延ãå
¥ãããšãã£ãæªçœ®ããšããŸããïŒ
ã» ããªã¬ãŒæ©èœã®èšå®
Google Spread Sheetã®ããŒã¿ããŒãã«ã®å€æŽæ
å ±ãGoogleã«ã¬ã³ããŒã«ãããåæ ãããããã®ããªã¬ãŒãèšå®ããŸãã
äžå³ç¢å°éšåã¯ãªãã¯ãããªã¬ãŒãéããŸãã
ããªã¬ãŒã®ç·šéãè¡ããŸãã
ä¿®æ£åããŒã¿ã®åé€ïŒåå0æïœ1æ
ä¿®æ£åŸã®ããŒã¿åæ ïŒåå1æïœ2æã
Googleã«ã¬ã³ããŒAPIã®ã¬ãŒãå¶éã®ãããã¡ã€ã³ã¹ã¯ãªããã¯åå1æãã1åå®æœããµãã¹ã¯ãªããã¯10ååŸãã10åããšã«çµäºãŸã§èªåçã«ãããåŠçãããŸãã
泚æ
ã»ãããªã¬ãŒã¯æ§ã
ãªåœ¢ã§èšå®ãã§ããŸãããæéèšå®ã¯ããã¿ãªââæéä¿¡ãšããããšã¯ã§ããªãããã§ãïŒãããŸã§ââæããââæã®éã«éä¿¡ãšããããšã®ããã§ãïŒã
ã»ãããªã¬ãŒã¯ãäžæåæ¢ãã®ãããªæ©èœããããŸãããèšå®ããæå»ã«ãªããã³ã«ããªã¬ãŒæ©èœãçºåããã®ã§ãæ¢ããããã«ã¯ããªã¬ãŒèªäœãåé€ããå¿
èŠãããããã§ãã
Googleã«ã¬ã³ããŒã«æå³éãã¹ã±ãžã¥ãŒã«ãšãåå è
å€æŽãåæ ããŸããã
以åŸã¯ã¡ã³ããŒã«å
±æããããã®ã«ã¬ã³ããŒãããŒã¹ã«äŒè°ã¹ã±ãžã¥ãŒã«ç®¡çãããŠè¡ãããšãã§ããŸãã
ã¡ã³ããŒããã®ãã£ãŒãããã¯
ä»åã¯ãè·å Žã®èº«è¿ã§èµ·ããŠããå°ãããšã解決ãããããŒãã«ãäŒè°é£çµ¡ããŒã«ãã¢ããªãäœæããŸããã
ããã§ãå®éã«è·å Žã§åã2åã®æ¹ã«ææ³ããã¢ãªã³ã°ããããšã«ããŸããïŒ
- ããïŒæ¥æ¬äººãç·åç³»æ¥åã®ããã©ã³ãç§æžå®€ã§ã®å€åçµéšããïŒã¢ããã°äŒè°ã¹ã±ãžã¥ãŒã«ã®å äœæè ïŒ
- ããïŒäžåœäººãã¢ã·ã¹ã¿ã³ããè€æ°æ¥ç³»äŒæ¥ã§ã®ç€Ÿé·ç§æžçµéšããïŒä»¥åã®äŒç€Ÿã§WeChatã®äŒæ¥BotäœæçµéšããïŒ
ã» ãããã¿ã€ãäœæã®å匷ãããŠãã
ã» ãããçšããŠè·å Žã®èº«è¿ãªå°ãããšã«ã€ããŠè§£æ±ºããããšè©Šã¿ãŠãã
ã» ä»åã®ãããã¿ã€ãäœæã®èæ¯ã»åæ©ãæ¬çš¿ã®ååã®å
容ã䜿ã£ãŠèª¬æã
ïŒVPNæ¥ç¶ãåºæ¥ãªããšäžåœã§ã¯App SheetãGoogle ã«ã¬ã³ããŒã«ã¢ã¯ã»ã¹ã§ããªããããTããã®ã¿æäœãLããã¯äŒè°çšå€§ã¹ã¯ãªãŒã³ïŒã«ãŠåäœã確èªããŠããããŸããïŒ
- å©äŸ¿æ§ã¯ããã ãããïŒåœ¹ã«ç«ã¡ãããïŒ
- 足ããããã£ãšå©äŸ¿æ§ã®ãããæ©èœããããšãããäœãïŒ
- ãã®ä»ãªãã§ãææ³ã
TããïŒïŒæèŠã«å¯Ÿããç§ã®åçã¯âã«ãŠïŒ
- 䟿å©ãã
- ã¡ãŒã«æé¢ã¯éä¿¡å
ã«ãã£ãŠã«ã¹ã¿ãã€ãºååºæ¥ãªããïŒ
äŒè°åå è ã«ãã£ãŠã¯ã¡ãŒã«ã§äŒè°ã®ã¢ããŠã³ã¹äžã€ããã«ãæé¢ã®çŽ°å¿ã®æ³šæãå¿ èŠãªã®ã§ãåå è ããšã«ã«ã¹ã¿ãã€ãºåã§ããªããïŒ
âä»åã®æ§æ³ã¯å€æ°ã®ã¡ã³ããŒã«äŒè°ã¹ã±ãžã¥ãŒã«ãäžæ¬éä»ããããããã®åçãäžæ¬ååéèšãããšããå©äŸ¿æ§ãè¿œæ±ããããã®ãããâã«ã¹ã¿ãã€ãºåâã®ããŒãºã«å³ããã¢ããªãäœæãããšãªããšãä»åã®æ§é ã§ã¯ãªã以äžã®ããã«äœæããããšãåºæ¥ããšæãã
ïŒïŒã¡ãŒã«ã®æ¬æãããããŒã»ããã£ã»ããã¿ãŒã«åããã
ïŒïŒããã£ã¯äŒè°æ¡å ã®æ¬æïŒèšãã®äžã®éšåïŒã«ããããå 容ã¯å人åºå®ãããããŒãããã¿ãŒãéä»ãã人ã«ãã£ãŠå€ãããããããŒã®æåã®æšæ¶ã¯æ¡å éä»ããææãèæ ®ããææžãChatGPTã§äœæã
ïŒïŒæ°åã圹è·åãªã©ã¯äºãããŒãã«ãäœæ
ïŒïŒäžèšãGASãªã©ã䜿ã£ãŠçµã¿åãããŠã¡ãŒã«äžæžãå®æã
ïŒïŒæåŸã«äººã®æã§âç²çžâããªãã確èªã®äžãçºä¿¡ - äŒè°ã®åå å¯èœæéã®èª¿æŽããããäŸãã°10ïŒ00-14ïŒ00ã®äŒè°ã§10ïŒ00-12ïŒ00ã¯åå å¯èœã ããã©ãã12ïŒ00以éã¯äžåº§ãšããå Žåã¯ã®èª¿æŽã¯ã§ããªããïŒ
âä»ååºæ¬ é ç®ã§ãåå ã»äžåå ã»æªå®ã®äžé ç®ã®éžæããå€æŽæš©éãäžããªãã£ãããåå æéã®å€æŽãApp Sheetã®EDITã§éžæããã°å¯Ÿå¿å¯èœã ãšæãã
LããïŒ
- äžåœã§ã¯Googleã¯äœ¿ããªãã®ã§ã代æ¿ããŒã«ãæ¢ãå¿
èŠããã
âçŸåšæ玢äžïŒäžç·ã«æ¢ããŠãã ãã - ã¢ããªã®äœæãé£ãããã§ã
âããã2æéãããã®è¬çŸ©ãåããŠäœã£ãŠããŸãããããŸã§é£ããã¯ãããŸããããŸã誰ããäœæããã°å šå¡äœ¿ããããã«ãªããŸããå šå¡ããã®äœææè¡ãæã€å¿ èŠã¯ãããŸããã - ã¢ããã°äŒè°ã¹ã±ãžã¥ãŒã«è¡šããããŒã¿ããŒãã«ãäœæããã®ã倧å€ãããªã®ã§ãåœç€Ÿã®æ¯æã®ã¹ã±ãžã¥ãŒã«äœæããšã¯ã»ã«ããŒã¹ããçŽæ¥MSã¢ãŠãã«ãã¯ã«å€ãããã©ãã§ããããïŒ
âMS ã¢ãŠãã«ãã¯ã¯äŒç€Ÿã®ã»ãã¥ãªãã£ããã£ããå ¥ã£ãŠããã®ã§å€éšæ å ±ãšã®é£æºãããããããã«æãïŒå®éãã©ã€ããŸãããã倱æããŸããïŒãäŒæ¥WeChatã®ã¹ã±ãžã¥ãŒã«è¡šã«åæ ããããã¡ã³ããŒå šå¡ã§å ±æã§ããã®ã§MS ã¢ãŠãã«ãã¯ããå©äŸ¿æ§ãé«ãã®ã§ã¯ïŒ
äŒæ¥WeChatã®ã«ã¬ã³ããŒç»é¢ã瀟å ã®åçš®æ å ±ãã©ãããã©ãŒã ã«ãªã£ãŠããã®ã§ãæåãããã¡ãã«åæ ã§ããã°ãã¹ãã§ãïŒããã¢ã€ãã¢ãåºãŠããŸããïŒïŒ
ïŒïŒäžåœã§å©çšããããã®Googleã®åçš®ããŒã«ã«ä»£æ¿ããããŒã«ã確ä¿ãã
ïŒïŒäŒæ¥Wechatã«ã¬ã³ããŒã®APIãã©ããã£ãŠç¢ºä¿ããã確èªãã
ïŒïŒã¢ããã°äŒè°ã¹ã±ãžã¥ãŒã«è¡šãšæ±ºå¥ããïŒç®¡çãã«ã¬ã³ããŒããŒã«ã§è¡ãããšãåæã«äŒè°ã¹ã±ãžã¥ãŒã«ãäœæããïŒ
ãŸãã¯1ïŒ2ãå®æœããäžã§ã3ã®éæã®ããå®è¡ã«ç§»ããããšèããŠããŸãããä»åã®å€§ããªåç©«ã¯3,ã®ãã¢ããã°äŒè°ã¹ã±ãžã¥ãŒã«è¡šãšæ±ºå¥ãããã ãšæããŸãã次ã®åãçµã¿ã«ãã€ãªããè¯ãæ¹åæ§ã§ãïŒ
èŠåŽããç¹
ã»ãæéãã®åŠç
ChatGPTã䜿ã£ãŠGASã®äœæãããŸããããSpread SheetããäŒè°ã®æ¥ä»ãéå§æéãçµäºæéã®âæéâãååŸããã«ã¬ã³ããŒã«åæ ããããã®åŠçã«æéåããŸããã
Spread Sheetäžã®èšè¿°åœ¢åŒãChatGPTã«ãã£ããã€ã³ãããããŠããããšãæ£ããåçãããŠãããŸããã
ãæéãã®åŠçã«æ¯åèŠåŽããŠããŸã
ã»Googleã«ã¬ã³ããŒã®ããŒã¿å€æŽã¯APIã®ã¬ãŒãå¶é
GASã®è©Šè¡é¯èª€ã§ã«ã¬ã³ããŒäžã«æžã蟌ã¿ãåé€ãç¹°ãè¿ããŠãããã¡ã«ããŒã¿å¶éãè¶
ãããããããšã©ãŒã衚瀺ãããŠããŸãããã«ãªããŸããã詳ããæ
å ±ã¯æ€çŽ¢ããŠãäžæã§ããããªãã¹ãå°ãªãæ
å ±ã§è©Šè¡é¯èª€ããããŸããã£ãŠãã倧éã®ããŒã¿ãæµã蟌ããªã©å·¥å€«ãå¿
èŠã§ãã
ä»åã®äžçªã®èŠåŽã¯ããã§ãã
äŒè°é£çµ¡ããŒã«ã®äŒç»ã®æ¹åã»æ¹è¯ç¹
ã»ãªãã°ãäŒè°å®æœã®äŒæ¥éã§ã®èª¿æŽãå¿
èŠïŒ
ã¢ããã°äŒè°ã¹ã±ãžã¥ãŒã«ãããããšãããšãèªç€Ÿã ãã§ãªãé¢é£å瀟ã䜵ããŠå®æœããªããšå¹æèãã§ãããã
ããžã¿ã«äŒè°ã¹ã±ãžã¥ãŒã«ãšããŠå瀟éã§äœ¿çšããã«ããã«ã¯ãæ©èœãå
šç¶è¶³ããŸããããã®ãããã¯äŒç»ãããå°ãç·Žã£ãŠé²ããããšããã§ãïŒ
第ïŒåŒŸãäŒè°é£çµ¡ããŒã«äœæããçµããŠ
æ¥åæ¹é©ã«åããŠã®å°ããªæ¥åæ¹åã®2åç®ã¯äŒè°ãšååŸã®æ¥åã®çååããç®çãšããããŒã«ãäœæããŠã¿ãŸããããã¢ãªã³ã°ãã2åãåãæèŠãæã£ãŠããããã§ãè¯ãæ¬è³ªçãªæ¹åæ¡ãåºãŠããã®ã¯å€§ããªåç©«ã§ãïŒïŒ
ïŒäžåœã§å®çšåããããã«ã¯ãŸã äžåœã§äœ¿ããããŒã«ãžã®ç§»æ€äœæ¥ãæ®ããŸããããå¿åŒ·ãå³æ¹ãèŠã€ãããŸããïŒ
ä»åã®ãã¢ãªã³ã°ã¯ãããŒã«ã®è©äŸ¡ãæåŸ ããŠã®ãã¢ãªã³ã°ã§ããããããããã€ã®éã«ããããªããšããã£ãŠããã®ãïŒãšããã·ã§ãã¯ãäžããŠããŸã£ãããã§ããã§ãããããã«ããããªã®ã¯ã§ããªããããããªã®ã¯ã§ããã®ãããšååããªæåŸ æã«å€ãã£ãŠããã®ãæããŸãããããŒã«ãžã®è©äŸ¡ããã¬ãããããã®åå¿ããšãŠããããããã§ãããªããšãåŒãç¶ããã£ãŠãããããªæ觊ã§ãïŒ
ãããªæ©èœããã£ãããããã䜿ããããšããã¢ã€ãã¢ããããŸãããæ¯éæããŠãã ããïŒ
æåŸãŸã§ãä»ãåãããã ããããããšãããããŸããïŒïŒ