DylanonWic commited on
Commit
3a6ff6b
1 Parent(s): a2109a5

Upload 18 files

Browse files
Files changed (4) hide show
  1. chatbot_multiagent.ipynb +483 -259
  2. chatbot_multiagent.py +1 -1
  3. prompt.py +9 -14
  4. tools.py +8 -9
chatbot_multiagent.ipynb CHANGED
@@ -274,466 +274,690 @@
274
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
275
  "Name: analyst\n",
276
  "Tool Calls:\n",
277
- " nearby_search (call_P34CTmQBMFVscuCNoXAMPeoc)\n",
278
- " Call ID: call_P34CTmQBMFVscuCNoXAMPeoc\n",
279
  " Args:\n",
280
- " input_dict: {'keyword': 'ร้านของชำ', 'location_name': 'อนุสาวรีย์ชัยสมรภูมิ', 'radius': 1000, 'place_type': 'store'}\n",
281
- " google_places (call_KOeGzcJyOhVGgxmdAw9a6UoH)\n",
282
- " Call ID: call_KOeGzcJyOhVGgxmdAw9a6UoH\n",
283
  " Args:\n",
284
- " query: อนุสาวรีย์ชัยสมรภูมิ\n",
285
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
286
- "Name: nearby_search\n",
287
  "\n",
288
- "number of results: 18\n",
 
 
 
 
289
  "\n",
290
- " address: 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, Ratchathewi\n",
291
  "\n",
292
- " location: {'lat': 13.7575211, 'lng': 100.5284703}\n",
 
 
 
 
293
  "\n",
294
- " lacation_name: ร้านค้า พรรณี\n",
295
  "\n",
296
- " opening hours: {'open_now': True}\n",
 
 
 
 
297
  "\n",
298
- " rating: 5\n",
299
  "\n",
300
- " plus code: 7P52QG5H+29\n",
 
 
 
 
301
  "\n",
302
  "\n",
303
- " \n",
304
- " address: เลขที่ 467 1 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi\n",
 
 
 
305
  "\n",
306
- " location: {'lat': 13.7642431, 'lng': 100.539397}\n",
307
  "\n",
308
- " lacation_name: ร้านกิตติของชำ\n",
 
 
 
 
309
  "\n",
310
- " opening hours: {'open_now': True}\n",
311
  "\n",
312
- " rating: 4\n",
 
 
 
 
313
  "\n",
314
- " plus code: 7P52QG7Q+MQ\n",
315
  "\n",
 
 
 
 
 
316
  "\n",
317
- " \n",
318
- " address: สมใจอพาร์ทเม้นท์ 184/4 Soi Phahon Yothin 1, Phaya Thai\n",
319
  "\n",
320
- " location: {'lat': 13.7698885, 'lng': 100.5358358}\n",
 
 
 
 
321
  "\n",
322
- " lacation_name: ขายของ\n",
323
  "\n",
324
- " opening hours: {'open_now': True}\n",
 
 
 
 
325
  "\n",
326
- " rating: 4.5\n",
327
  "\n",
328
- " plus code: 7P52QG9P+W8\n",
 
 
 
 
329
  "\n",
330
  "\n",
331
- " \n",
332
- " address: 476 ตลาดศรีวนิช ซอย Thanon Asok - Din Daeng, Din Daeng\n",
 
 
 
333
  "\n",
334
- " location: {'lat': 13.7631408, 'lng': 100.5455863}\n",
335
  "\n",
336
- " lacation_name: ร้านปิ่นสุวรรณ\n",
 
 
 
 
337
  "\n",
338
- " opening hours: {'open_now': True}\n",
339
  "\n",
340
- " rating: 4.4\n",
 
 
 
 
341
  "\n",
342
- " plus code: 7P52QG7W+76\n",
343
  "\n",
 
 
 
 
 
344
  "\n",
345
- " \n",
346
- " address: 140/6 Ratchawithi Rd, Phaya Thai\n",
347
  "\n",
348
- " location: {'lat': 13.7708078, 'lng': 100.5345492}\n",
 
 
 
 
349
  "\n",
350
- " lacation_name: ร้านแอมโชห่วย\n",
351
  "\n",
352
- " opening hours: {'open_now': True}\n",
 
 
 
 
353
  "\n",
354
- " rating: 5\n",
355
  "\n",
356
- " plus code: 7P52QGCM+8R\n",
 
 
 
 
357
  "\n",
358
  "\n",
359
- " \n",
360
- " address: 156/5 ซอย เพชรบุรี 7 Phetchaburi Rd, Thung Phaya Thai, Ratchathewi\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  "\n",
362
- " location: {'lat': 13.7564968, 'lng': 100.5303369}\n",
 
 
 
 
363
  "\n",
364
- " lacation_name: ร้านชำคุณภาวิมล\n",
365
  "\n",
366
- " opening hours: {'open_now': True}\n",
 
 
 
 
 
 
 
 
367
  "\n",
368
- " rating: 3\n",
369
  "\n",
370
- " plus code: 7P52QG4J+H4\n",
371
  "\n",
 
372
  "\n",
373
- " \n",
374
- " address: 292 Takhe Alley, Din Daeng\n",
375
  "\n",
376
- " location: {'lat': 13.7623644, 'lng': 100.5454444}\n",
377
  "\n",
378
- " lacation_name: ร้านนุสรา\n",
379
  "\n",
380
- " opening hours: {'open_now': True}\n",
 
381
  "\n",
382
- " rating: 4.3\n",
383
  "\n",
384
- " plus code: 7P52QG6W+W5\n",
385
  "\n",
 
386
  "\n",
387
- " \n",
388
- " address: เลขที่ 475 Phaya Thai Rd, Khwaeng Thanon Phaya Thai, Ratchathewi\n",
389
  "\n",
390
- " location: {'lat': 13.7583454, 'lng': 100.5356299}\n",
 
391
  "\n",
392
- " lacation_name: ขายของชำ ประตูน้ำ\n",
393
  "\n",
394
  " opening hours: {'open_now': True}\n",
395
  "\n",
396
- " rating: 5\n",
397
- "\n",
398
- " plus code: 7P52QG5P+87\n",
399
  "\n",
400
  "\n",
401
  " \n",
402
- " address: 208/1 Ratchaprarop Rd, Makkasan, Ratchathewi\n",
403
  "\n",
404
- " location: {'lat': 13.758491, 'lng': 100.5467617}\n",
405
  "\n",
406
- " lacation_name: ร้านแดง ขายของชำ\n",
407
  "\n",
408
- " opening hours: {}\n",
409
  "\n",
410
- " rating: 0\n",
411
  "\n",
412
- " plus code: 7P52QG5W+9P\n",
 
 
 
413
  "\n",
 
414
  "\n",
415
- " \n",
416
- " address: Satsana Alley, Phaya Thai\n",
417
  "\n",
418
- " location: {'lat': 13.7752298, 'lng': 100.5344783}\n",
419
  "\n",
420
- " lacation_name: ร้านชำปากมาสด้า\n",
 
421
  "\n",
422
- " opening hours: N/A\n",
423
  "\n",
424
- " rating: 5\n",
425
  "\n",
426
- " plus code: 7P52QGGM+3Q\n",
427
  "\n",
428
  "\n",
429
  " \n",
430
- " address: 158, ถนนเพชรบุรี, แขวงถนนพญาไท เขตราชเทวี กทม, 10400\n",
431
  "\n",
432
- " location: {'lat': 13.7539101, 'lng': 100.5388145}\n",
433
- "\n",
434
- " lacation_name: โชคดีพานิช\n",
435
  "\n",
436
  " opening hours: {'open_now': True}\n",
437
  "\n",
438
- " rating: 3\n",
439
- "\n",
440
- " plus code: N/A\n",
441
  "\n",
442
  "\n",
443
  " \n",
444
- " address: QG6W+V6W, Soi Talat Sri Wanit, Din Daeng\n",
 
 
 
 
 
 
445
  "\n",
446
- " location: {'lat': 13.7622819, 'lng': 100.5456102}\n",
447
  "\n",
448
- " lacation_name: Shoping Minimart\n",
 
 
 
449
  "\n",
450
  " opening hours: {'open_now': True}\n",
451
  "\n",
452
  " rating: 0\n",
453
  "\n",
454
- " plus code: N/A\n",
 
 
 
 
 
 
 
 
455
  "\n",
456
  "\n",
457
  " \n",
458
- " address: 421 6-7 Ratchawithi Rd, Thung Phaya Thai, Ratchathewi\n",
459
  "\n",
460
- " location: {'lat': 13.765786, 'lng': 100.5366638}\n",
461
  "\n",
462
- " lacation_name: Komol Center\n",
463
  "\n",
464
- " opening hours: {'open_now': True}\n",
465
  "\n",
466
- " rating: 4.1\n",
467
  "\n",
468
- " plus code: 7P52QG8P+8M\n",
 
 
 
 
 
 
 
469
  "\n",
470
  "\n",
471
  " \n",
472
- " address: 164 52 Soi Nom Chit, Thung Phaya Thai, Ratchathewi\n",
 
 
 
 
 
 
 
473
  "\n",
474
- " location: {'lat': 13.7549367, 'lng': 100.5312989}\n",
 
475
  "\n",
476
- " lacation_name: ร้านนันทา\n",
477
  "\n",
478
  " opening hours: {'open_now': True}\n",
479
  "\n",
480
  " rating: 0\n",
481
  "\n",
482
- " plus code: 7P52QG3J+XG\n",
483
- "\n",
484
  "\n",
485
  " \n",
486
- " address: 156/2 ซอย เพ��รบุรี 7 Phetchaburi Rd, Thung Phaya Thai, Ratchathewi\n",
487
- "\n",
488
- " location: {'lat': 13.7564122, 'lng': 100.5303184}\n",
489
  "\n",
490
- " lacation_name: ร้านชำทองศรี\n",
491
  "\n",
492
  " opening hours: N/A\n",
493
  "\n",
494
  " rating: 0\n",
495
  "\n",
496
- " plus code: 7P52QG4J+H4\n",
497
- "\n",
498
  "\n",
499
  " \n",
500
- " address: QG6V+8G2, Soi Ratchaprarop 22, Makkasan, Ratchathewi\n",
501
- "\n",
502
- " location: {'lat': 13.7607492, 'lng': 100.5437717}\n",
503
  "\n",
504
- " lacation_name: PB Minimart\n",
505
  "\n",
506
  " opening hours: {'open_now': True}\n",
507
  "\n",
508
- " rating: 0\n",
509
- "\n",
510
- " plus code: N/A\n",
511
  "\n",
512
  "\n",
513
  " \n",
514
- " address: 5 ซอย อร่ามศรี Phaya Thai Rd, Thung Phaya Thai, Ratchathewi\n",
515
  "\n",
516
- " location: {'lat': 13.7552514, 'lng': 100.5324115}\n",
517
- "\n",
518
- " lacation_name: อนิรุช มินิมาร์ท\n",
519
  "\n",
520
  " opening hours: {'open_now': True}\n",
521
  "\n",
522
- " rating: 0\n",
 
 
 
 
 
 
523
  "\n",
524
- " plus code: 7P52QG4J+4X\n",
 
 
525
  "\n",
526
  "\n",
527
  " \n",
528
- " address: 208/1 Ratchaprarop Rd, Makkasan, Ratchathewi\n",
529
  "\n",
530
- " location: {'lat': 13.758491, 'lng': 100.5467617}\n",
531
  "\n",
532
- " lacation_name: ร้านป้าแดง มินิมาร์ท\n",
533
  "\n",
534
- " opening hours: {}\n",
535
  "\n",
536
- " rating: 0\n",
537
  "\n",
538
- " plus code: 7P52QG5W+9P\n",
 
 
 
 
 
 
 
539
  "\n",
540
  "\n",
541
  " \n",
542
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
543
- "Name: analyst\n",
544
- "\n",
545
- "I have gathered information about grocery stores (ร้านของชำ) near the Victory Monument (อนุสาวรีย์ชัยสมรภูมิ). Here are some of the notable results:\n",
546
- "\n",
547
- "1. **ร้านของชำ 1**\n",
548
- " - **Address:** 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, Ratchathewi\n",
549
- " - **Location:** Latitude 13.7575211, Longitude 100.5284703\n",
550
- " - **Rating:** 5\n",
551
- " - **Open Now:** Yes\n",
552
- "\n",
553
- "2. **ร้านของชำ 2**\n",
554
- " - **Address:** 467 1 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi\n",
555
- " - **Location:** Latitude 13.7642431, Longitude 100.539397\n",
556
- " - **Rating:** 4\n",
557
- " - **Open Now:** Yes\n",
558
- "\n",
559
- "3. **ร้านของชำ 3**\n",
560
- " - **Address:** 184/4 Soi Phahon Yothin 1, Phaya Thai\n",
561
- " - **Location:** Latitude 13.7698885, Longitude 100.5358358\n",
562
- " - **Rating:** 4.5\n",
563
- " - **Open Now:** Yes\n",
564
- "\n",
565
- "4. **ร้านของชำ 4**\n",
566
- " - **Address:** 476 Thanon Asok - Din Daeng, Din Daeng\n",
567
- " - **Location:** Latitude 13.7631408, Longitude 100.5455863\n",
568
- " - **Rating:** 4.4\n",
569
- " - **Open Now:** Yes\n",
570
- "\n",
571
- "5. **ร้านของชำ 5**\n",
572
- " - **Address:** 140/6 Ratchawithi Rd, Phaya Thai\n",
573
- " - **Location:** Latitude 13.7708078, Longitude 100.5345492\n",
574
- " - **Rating:** 5\n",
575
- " - **Open Now:** Yes\n",
576
- "\n",
577
- "There are a total of 18 grocery stores found in the vicinity.\n",
578
- "\n",
579
- "Next, I will need to gather demographic data regarding the population in the area surrounding the Victory Monument to analyze the business opportunity further. Please hold on while I collect that information.\n",
580
  "Tool Calls:\n",
581
- " google_places (call_WuhlWTBQgU0nZwbMBdCVwf6i)\n",
582
- " Call ID: call_WuhlWTBQgU0nZwbMBdCVwf6i\n",
583
  " Args:\n",
584
- " query: Victory Monument Bangkok demographics\n",
585
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
586
  "Name: google_places\n",
587
  "\n",
588
- "1. Victory Monument\n",
589
- "Address: QG7Q+X87, Phahon Yothin Rd, Khwaeng Thanon Phaya Thai, Khet Ratchathewi, Krung Thep Maha Nakhon 10400, Thailand\n",
590
- "Google place ID: ChIJgV6P8rCe4jARDeGu63VNWdQ\n",
591
  "Phone: Unknown\n",
592
- "Website: Unknown\n",
593
  "\n",
594
  "\n",
595
- "2. Victory Monument\n",
596
- "Address: Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
597
- "Google place ID: ChIJgyNezLae4jARDb68DW25BV8\n",
598
  "Phone: Unknown\n",
599
- "Website: http://www.bts.co.th/\n",
600
  "\n",
601
  "\n",
602
- "3. Victory Monument\n",
603
- "Address: Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
604
- "Google place ID: ChIJEwyQ3rCe4jARk62JeFdOh4g\n",
605
  "Phone: Unknown\n",
606
  "Website: Unknown\n",
607
  "\n",
608
  "\n",
609
- "4. Victory momument market\n",
610
- "Address: QG7Q+JFF, Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
611
- "Google place ID: ChIJ20qIBgCf4jAR2GmWQw3fYN0\n",
612
  "Phone: Unknown\n",
613
  "Website: Unknown\n",
614
  "\n",
615
  "\n",
616
- "5. Victory Monument (Ratchawithi side)\n",
617
- "Address: Thung Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
618
- "Google place ID: ChIJ-fASHLGe4jAR6aspBE2QiTk\n",
619
  "Phone: Unknown\n",
620
  "Website: Unknown\n",
621
  "\n",
622
  "\n",
623
- "6. VIX Bangkok Hotel @ Victory Monument\n",
624
- "Address: 459 13-15 Thanon Ratchawithi, Khwaeng Thanon Phaya Thai, Khet Ratchathewi, Krung Thep Maha Nakhon 10400, Thailand\n",
625
- "Google place ID: ChIJi6NE7LGe4jARIVOxSOdE7Ns\n",
626
- "Phone: 065 441 4164\n",
627
- "Website: https://www.vixbangkokhotel.com/\n",
628
  "\n",
629
  "\n",
630
- "7. Victory Point\n",
631
- "Address: QG7Q+F9R, ซอยราชวิถี 9 (เลิศปัญญา, Khwaeng Thanon Phaya Thai, Khet Ratchathewi, Krung Thep Maha Nakhon 10400, Thailand\n",
632
- "Google place ID: ChIJO4Fr2rCe4jARspM8TZcOE7E\n",
633
- "Phone: Unknown\n",
634
  "Website: Unknown\n",
635
  "\n",
636
  "\n",
637
- "8. Victory Monument (Phaya Thai Side)\n",
638
- "Address: Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
639
- "Google place ID: ChIJj3NG3rCe4jARZCgajLqNYwY\n",
640
  "Phone: Unknown\n",
641
  "Website: Unknown\n",
642
  "\n",
643
  "\n",
644
- "9. Victory Monument (Din Daeng side)\n",
645
- "Address: Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\n",
646
- "Google place ID: ChIJuWPz8bCe4jAR5dvTSk4O8uk\n",
647
- "Phone: Unknown\n",
648
- "Website: Unknown\n",
649
  "\n",
650
  "\n",
651
- "10. World War I Volunteer Monument\n",
652
- "Address: 4 Soi Na Phra That, Khwaeng Phra Borom Maha Ratchawang, Khet Phra Nakhon, Krung Thep Maha Nakhon 10200, Thailand\n",
653
- "Google place ID: ChIJr1UBJw2Z4jARZ5tidTivoDA\n",
654
  "Phone: Unknown\n",
655
- "Website: http://www.resource.lib.su.ac.th/rattanakosin/index.php/2014-10-27-08-52-05/2015-10-19-03-54-00/2015-10-19-04-17-51\n",
656
  "\n",
657
  "\n",
658
- "11. King Rama VI Monument\n",
659
- "Address: 315 Thanon Ratchawithi, Khwaeng Thung Phaya Thai, Khet Ratchathewi, Krung Thep Maha Nakhon 10400, Thailand\n",
660
- "Google place ID: ChIJ8825fLKe4jAR4OhUee1Kyfc\n",
661
- "Phone: Unknown\n",
662
- "Website: Unknown\n",
663
- "\n",
664
  "\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
665
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
666
- "Name: analyst\n",
667
  "\n",
668
- "I was unable to find specific demographic data directly related to the population around the Victory Monument. However, I can summarize the key points regarding the grocery stores found in the area:\n",
669
  "\n",
670
- "### Grocery Stores Near Victory Monument:\n",
671
- "1. **ร้านของชำ 1**\n",
672
- " - **Address:** 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, Ratchathewi\n",
673
- " - **Rating:** 5\n",
674
- " - **Open Now:** Yes\n",
675
  "\n",
676
- "2. **ร้านของชำ 2**\n",
677
- " - **Address:** 467 1 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi\n",
678
- " - **Rating:** 4\n",
679
- " - **Open Now:** Yes\n",
680
  "\n",
681
- "3. **ร้านของชำ 3**\n",
682
- " - **Address:** 184/4 Soi Phahon Yothin 1, Phaya Thai\n",
683
- " - **Rating:** 4.5\n",
684
- " - **Open Now:** Yes\n",
685
  "\n",
686
- "4. **ร้านของชำ 4**\n",
687
- " - **Address:** 476 Thanon Asok - Din Daeng, Din Daeng\n",
688
- " - **Rating:** 4.4\n",
689
- " - **Open Now:** Yes\n",
690
  "\n",
691
- "5. **ร้านของชำ 5**\n",
692
- " - **Address:** 140/6 Ratchawithi Rd, Phaya Thai\n",
693
- " - **Rating:** 5\n",
694
- " - **Open Now:** Yes\n",
695
  "\n",
696
- "### Next Steps:\n",
697
- "To analyze the business opportunity effectively, I recommend looking into local demographic statistics such as population density, average income, and consumer behavior in the Ratchathewi district. This information can often be found through local government resources or demographic research websites.\n",
 
698
  "\n",
699
- "If you need further assistance in gathering specific demographic data or any other information, please let me know!\n",
700
- "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
701
- "Name: data_collector\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  "\n",
703
- "FINAL ANSWER: I have gathered information about grocery stores near the Victory Monument (อนุสาวรีย์ชัยสมรภูมิ) and summarized the key points regarding the stores. However, I was unable to find specific demographic data directly related to the population around the Victory Monument. \n",
 
 
704
  "\n",
705
- "### Grocery Stores Near Victory Monument:\n",
706
- "1. **ร้านของชำ 1**\n",
707
- " - **Address:** 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, Ratchathewi\n",
708
- " - **Rating:** 5\n",
709
- " - **Open Now:** Yes\n",
710
  "\n",
711
- "2. **ร้านของชำ 2**\n",
712
- " - **Address:** 467 1 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi\n",
713
- " - **Rating:** 4\n",
714
- " - **Open Now:** Yes\n",
715
  "\n",
716
- "3. **ร้านของชำ 3**\n",
717
- " - **Address:** 184/4 Soi Phahon Yothin 1, Phaya Thai\n",
718
- " - **Rating:** 4.5\n",
719
- " - **Open Now:** Yes\n",
720
  "\n",
721
- "4. **ร้านของชำ 4**\n",
722
- " - **Address:** 476 Thanon Asok - Din Daeng, Din Daeng\n",
723
- " - **Rating:** 4.4\n",
724
- " - **Open Now:** Yes\n",
725
  "\n",
726
- "5. **ร้านของชำ 5**\n",
727
- " - **Address:** 140/6 Ratchawithi Rd, Phaya Thai\n",
728
- " - **Rating:** 5\n",
729
- " - **Open Now:** Yes\n",
730
  "\n",
731
- "For further analysis, I recommend looking into local demographic statistics such as population density, average income, and consumer behavior in the Ratchathewi district. If you need more assistance, feel free to ask!\n"
732
  ]
733
  }
734
  ],
735
  "source": [
736
- "# question = \"ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร\"\n",
737
  "\n",
738
  "# graph = workflow.compile()\n",
739
  "\n",
 
274
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
275
  "Name: analyst\n",
276
  "Tool Calls:\n",
277
+ " google_places (call_81AeKm81mGnKIVPQMqY6B3os)\n",
278
+ " Call ID: call_81AeKm81mGnKIVPQMqY6B3os\n",
279
  " Args:\n",
280
+ " query: ตลาดจตุจักร\n",
281
+ " nearby_search (call_xofWhjOlNKMDTm4DM70iBM0X)\n",
282
+ " Call ID: call_xofWhjOlNKMDTm4DM70iBM0X\n",
283
  " Args:\n",
284
+ " input_dict: {'keyword': 'bakery', 'location_name': 'ตลาดจตุจักร', 'radius': 500, 'place_type': 'bakery'}\n",
285
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
286
+ "Name: google_places\n",
287
  "\n",
288
+ "1. Chatuchak Weekend Market\n",
289
+ "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
290
+ "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
291
+ "Phone: Unknown\n",
292
+ "Website: https://www.chatuchakmarket.org/\n",
293
  "\n",
 
294
  "\n",
295
+ "2. Chatuchak Market 2 (Mueang Min)\n",
296
+ "Address: Min Buri, Bangkok 10510, Thailand\n",
297
+ "Google place ID: ChIJc0wng_hlHTER4F1VFEBu9R0\n",
298
+ "Phone: 02 518 2062\n",
299
+ "Website: https://m.facebook.com/pg/%E0%B8%95%E0%B8%A5%E0%B8%B2%E0%B8%94%E0%B8%99%E0%B8%B1%E0%B8%94%E0%B8%88%E0%B8%95%E0%B8%B8%E0%B8%88%E0%B8%B1%E0%B8%81%E0%B8%A3-%E0%B9%92-%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87%E0%B8%A1%E0%B8%B5%E0%B8%99-679468482225340/posts/\n",
300
  "\n",
 
301
  "\n",
302
+ "3. Jatujak Plaza\n",
303
+ "Address: 599 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
304
+ "Google place ID: ChIJz9JH_RSc4jARPvh8LMgxS5Q\n",
305
+ "Phone: 02 265 9684\n",
306
+ "Website: Unknown\n",
307
  "\n",
 
308
  "\n",
309
+ "4. ตลาดปลาจตุจักร\n",
310
+ "Address: ติดกับ เจเจ มอลล์ ออกประตู 2, ถ. กำแพงเพชร 2 แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
311
+ "Google place ID: ChIJyVzuMWuc4jARCWF_uACiWe4\n",
312
+ "Phone: 02 265 9888\n",
313
+ "Website: https://ตลาดปลาจตุจักร.com/\n",
314
  "\n",
315
  "\n",
316
+ "5. Chatuchak Weekend Market (Minburi)\n",
317
+ "Address: มีนบุรี จตุจักร มีนบุรี Khwaeng Min Buri, Khet Min Buri, Krung Thep Maha Nakhon 10510, Thailand\n",
318
+ "Google place ID: ChIJ0TcXlz1lHTERCZL-6Nw6WBU\n",
319
+ "Phone: 098 446 3597\n",
320
+ "Website: Unknown\n",
321
  "\n",
 
322
  "\n",
323
+ "6. Or Tor Kor Market\n",
324
+ "Address: 101 Thanon Kamphaeng Phet, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
325
+ "Google place ID: ChIJw4KnHhSc4jARdq9pN389cO8\n",
326
+ "Phone: 02 279 2080\n",
327
+ "Website: http://www.mof.or.th/\n",
328
  "\n",
 
329
  "\n",
330
+ "7. JJ Mall Chatuchak\n",
331
+ "Address: 588 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
332
+ "Google place ID: ChIJQ2IA1xSc4jARPUC_qVZP9U4\n",
333
+ "Phone: 02 265 9999\n",
334
+ "Website: http://www.jjmall.co.th/\n",
335
  "\n",
 
336
  "\n",
337
+ "8. Chatuchak Flower Market\n",
338
+ "Address: RH22+956, Thanon Kamphaeng Phet, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
339
+ "Google place ID: ChIJ5a5ULRKc4jARW0oKzuTyMcQ\n",
340
+ "Phone: Unknown\n",
341
+ "Website: Unknown\n",
342
  "\n",
 
 
343
  "\n",
344
+ "9. Chatuchak Night Market\n",
345
+ "Address: เลขที่ โครงการ 9 ซอย 13/1 เลขที่ 015 จตุจักร, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
346
+ "Google place ID: ChIJj2r5qFqd4jARN8g-HGfi0U0\n",
347
+ "Phone: Unknown\n",
348
+ "Website: https://www.chatuchakmarket.org/\n",
349
  "\n",
 
350
  "\n",
351
+ "10. Mixt Chatuchak\n",
352
+ "Address: 8 Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
353
+ "Google place ID: ChIJdZYPAOid4jARV2-4R9rzO-A\n",
354
+ "Phone: 02 079 4888\n",
355
+ "Website: http://www.mixtchatuchak.com/\n",
356
  "\n",
 
357
  "\n",
358
+ "11. Chatuchak\n",
359
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
360
+ "Google place ID: ChIJL1rMWl2c4jARQI7iXbIAAQQ\n",
361
+ "Phone: Unknown\n",
362
+ "Website: Unknown\n",
363
  "\n",
364
  "\n",
365
+ "12. Punk Berry Chatuchak Weekend Market\n",
366
+ "Address: โครงการ3 ซอย44/1 ห้อง180 Khwaeng Chatuchak, จตุจักร Krung Thep Maha Nakhon 10900, Thailand\n",
367
+ "Google place ID: ChIJyZniAgGd4jARUhi78LZrHEM\n",
368
+ "Phone: 091 795 4956\n",
369
+ "Website: https://www.punkberryth.com/\n",
370
  "\n",
 
371
  "\n",
372
+ "13. J. Market\n",
373
+ "Address: อาคาร J.Market 2137/27 ซอย อมรพันธุ์ แขวง ลาดยาว Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
374
+ "Google place ID: ChIJdTehduKc4jARbXLUV6mm5kw\n",
375
+ "Phone: Unknown\n",
376
+ "Website: Unknown\n",
377
  "\n",
 
378
  "\n",
379
+ "14. Chatuchak Park\n",
380
+ "Address: Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
381
+ "Google place ID: ChIJnZuu10Oc4jAR0DkLPbMAAQ8\n",
382
+ "Phone: Unknown\n",
383
+ "Website: Unknown\n",
384
  "\n",
 
385
  "\n",
386
+ "15. Train Night Market DanNeramit\n",
387
+ "Address: Phahon Yothin Rd, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
388
+ "Google place ID: ChIJN6wMZrmd4jARlUCRUDLj41Y\n",
389
+ "Phone: 098 709 8779\n",
390
+ "Website: http://www.facebook.com/TrainNightMarket.danneramit\n",
391
  "\n",
 
 
392
  "\n",
393
+ "16. JJ Pet Market\n",
394
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
395
+ "Google place ID: ChIJzajYMhWc4jARn4c8OYVuxDg\n",
396
+ "Phone: Unknown\n",
397
+ "Website: Unknown\n",
398
  "\n",
 
399
  "\n",
400
+ "17. PTT Farmers' Market\n",
401
+ "Address: 3 ซอย นิคมรถไฟสาย 1 Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
402
+ "Google place ID: ChIJoao4bVyc4jARcIN3FSHqfME\n",
403
+ "Phone: Unknown\n",
404
+ "Website: Unknown\n",
405
  "\n",
 
406
  "\n",
407
+ "18. JAPARA @Jatujak Market\n",
408
+ "Address: Chatuchak Weekend Market (Section 2) Soi 41/1 Room.281-282, ถนน กำแพงเพชร 3 แขวงลาดยาว เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
409
+ "Google place ID: ChIJBRQuqNyd4jARgvHqttIaTvY\n",
410
+ "Phone: 089 759 9882\n",
411
+ "Website: Unknown\n",
412
  "\n",
413
  "\n",
414
+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
415
+ "Name: analyst\n",
416
+ "\n",
417
+ "I have gathered information about bakeries near Chatuchak Market. Here are some of the competitors:\n",
418
+ "\n",
419
+ "1. **Sanan Bakery**\n",
420
+ " - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
421
+ " - Rating: 4.4\n",
422
+ " - Open Now: Yes\n",
423
+ "\n",
424
+ "2. **The Croissant Corner**\n",
425
+ " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
426
+ " - Rating: 4.7\n",
427
+ " - Open Now: Yes\n",
428
+ "\n",
429
+ "3. **Baked With Hearts**\n",
430
+ " - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
431
+ " - Rating: 4.6\n",
432
+ " - Open Now: Yes\n",
433
+ "\n",
434
+ "4. **JJ Mall One More Bite Japanese Bakery**\n",
435
+ " - Address: 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
436
+ " - Rating: 4.9\n",
437
+ " - Open Now: Yes\n",
438
+ "\n",
439
+ "5. **Triple D Bakery @ Chatuchak Market**\n",
440
+ " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
441
+ " - Rating: 4.9\n",
442
+ " - Open Now: No\n",
443
+ "\n",
444
+ "6. **Bellinee's Bake & Brew**\n",
445
+ " - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
446
+ " - Rating: 3.9\n",
447
+ " - Open Now: Yes\n",
448
+ "\n",
449
+ "7. **Mom’s FF Cafe & Bakery**\n",
450
+ " - Address: 356-357, Chatuchak\n",
451
+ " - Rating: 5\n",
452
+ " - Open Now: N/A\n",
453
+ "\n",
454
+ "8. **Makarong**\n",
455
+ " - Address: 4 Soi 49/2, Chatuchak\n",
456
+ " - Rating: 4.9\n",
457
+ " - Open Now: No\n",
458
+ "\n",
459
+ "9. **Wipada Herb Coffee and Bakery**\n",
460
+ " - Address: 2 Kamphaeng Phet Rd, Chatuchak\n",
461
+ " - Rating: 0\n",
462
+ " - Open Now: Yes\n",
463
+ "\n",
464
+ "These bakeries vary in their offerings and ratings, which can help you analyze the competitive landscape around Chatuchak Market. If you need more specific insights or additional data, please let me know!\n",
465
+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
466
+ "Name: data_collector\n",
467
+ "Tool Calls:\n",
468
+ " google_places (call_SntxTMhUqEyn5s6gdkAOkGMK)\n",
469
+ " Call ID: call_SntxTMhUqEyn5s6gdkAOkGMK\n",
470
+ " Args:\n",
471
+ " query: Chatuchak Market\n",
472
+ "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
473
+ "Name: google_places\n",
474
  "\n",
475
+ "1. Chatuchak Weekend Market\n",
476
+ "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
477
+ "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
478
+ "Phone: Unknown\n",
479
+ "Website: https://www.chatuchakmarket.org/\n",
480
  "\n",
 
481
  "\n",
482
+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
483
+ "Name: data_collector\n",
484
+ "Tool Calls:\n",
485
+ " nearby_search (call_GSWnIwn8QHAalzIJi9Z3Ljhv)\n",
486
+ " Call ID: call_GSWnIwn8QHAalzIJi9Z3Ljhv\n",
487
+ " Args:\n",
488
+ " input_dict: {'keyword': 'bakery', 'location_name': 'Chatuchak Weekend Market', 'radius': 1000, 'place_type': 'bakery'}\n",
489
+ "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
490
+ "Name: nearby_search\n",
491
  "\n",
492
+ "number of results more than 20\n",
493
  "\n",
494
+ " address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
495
  "\n",
496
+ " lacation_name: Triple D Bakery @ Chatuchak Market\n",
497
  "\n",
498
+ " opening hours: {'open_now': False}\n",
 
499
  "\n",
500
+ " rating: 4.9\n",
501
  "\n",
 
502
  "\n",
503
+ " \n",
504
+ " address: 12/6 Vibhavadi Rangsit Rd, Chom Phon, Chatuchak\n",
505
  "\n",
506
+ " lacation_name: Bakery by AU\n",
507
  "\n",
508
+ " opening hours: {'open_now': True}\n",
509
  "\n",
510
+ " rating: 5\n",
511
  "\n",
 
 
512
  "\n",
513
+ " \n",
514
+ " address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
515
  "\n",
516
+ " lacation_name: Sanan Bakery\n",
517
  "\n",
518
  " opening hours: {'open_now': True}\n",
519
  "\n",
520
+ " rating: 4.4\n",
 
 
521
  "\n",
522
  "\n",
523
  " \n",
524
+ " address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
525
  "\n",
526
+ " lacation_name: Baked With Hearts\n",
527
  "\n",
528
+ " opening hours: {'open_now': True}\n",
529
  "\n",
530
+ " rating: 4.6\n",
531
  "\n",
 
532
  "\n",
533
+ " \n",
534
+ " address: อ ตก สามเสน ใน, Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
535
+ "\n",
536
+ " lacation_name: The Croissant Corner\n",
537
  "\n",
538
+ " opening hours: {'open_now': True}\n",
539
  "\n",
540
+ " rating: 4.7\n",
 
541
  "\n",
 
542
  "\n",
543
+ " \n",
544
+ " address: 1493 Phahonyothin Rd, Phaya Thai\n",
545
  "\n",
546
+ " lacation_name: Morn Loh Hiang Bakery\n",
547
  "\n",
548
+ " opening hours: {'open_now': True}\n",
549
  "\n",
550
+ " rating: 4.6\n",
551
  "\n",
552
  "\n",
553
  " \n",
554
+ " address: 618, 1 Phahonyothin Rd, Samsen Nai, Phaya Thai\n",
555
  "\n",
556
+ " lacation_name: S&P Big C SaphanKwai\n",
 
 
557
  "\n",
558
  " opening hours: {'open_now': True}\n",
559
  "\n",
560
+ " rating: 3.7\n",
 
 
561
  "\n",
562
  "\n",
563
  " \n",
564
+ " address: โครงการ 4 ซอย 48/3 Chatuchak\n",
565
+ "\n",
566
+ " lacation_name: 3meebakery\n",
567
+ "\n",
568
+ " opening hours: {'open_now': False}\n",
569
+ "\n",
570
+ " rating: 5\n",
571
  "\n",
 
572
  "\n",
573
+ " \n",
574
+ " address: เลขที่ 3029\n",
575
+ "\n",
576
+ " lacation_name: HUB​ bakery​&souvenir​s​\n",
577
  "\n",
578
  " opening hours: {'open_now': True}\n",
579
  "\n",
580
  " rating: 0\n",
581
  "\n",
582
+ "\n",
583
+ " \n",
584
+ " address: 1058/104 Phahonyothin Rd, Chom Phon, Chatuchak\n",
585
+ "\n",
586
+ " lacation_name: Neighbourhood Toast Shop\n",
587
+ "\n",
588
+ " opening hours: {'open_now': True}\n",
589
+ "\n",
590
+ " rating: 4\n",
591
  "\n",
592
  "\n",
593
  " \n",
594
+ " address: 343a Phahonyothin Soi 15, Phaya Thai\n",
595
  "\n",
596
+ " lacation_name: กล้วยฉาบเตาถ่าน ทำสดๆใหม่ๆ\n",
597
  "\n",
598
+ " opening hours: {}\n",
599
  "\n",
600
+ " rating: 5\n",
601
  "\n",
 
602
  "\n",
603
+ " \n",
604
+ " address: 197/8 Soi Pradipat, Phaya Thai\n",
605
+ "\n",
606
+ " lacation_name: Twentyseven Bakery\n",
607
+ "\n",
608
+ " opening hours: {'open_now': True}\n",
609
+ "\n",
610
+ " rating: 5\n",
611
  "\n",
612
  "\n",
613
  " \n",
614
+ " address: 170/8-10 ถ.ประดิพัทธ์ แขวงสามเสนใน, Phaya Thai\n",
615
+ "\n",
616
+ " lacation_name: Kudsan Bakery & Coffee\n",
617
+ "\n",
618
+ " opening hours: {'open_now': False}\n",
619
+ "\n",
620
+ " rating: 0\n",
621
+ "\n",
622
  "\n",
623
+ " \n",
624
+ " address: 63/1 Vibhavadi Rangsit 5 Alley, Lane 1-2-2, Chom Phon, Chatuchak\n",
625
  "\n",
626
+ " lacation_name: Cherpang Bakery Homemade\n",
627
  "\n",
628
  " opening hours: {'open_now': True}\n",
629
  "\n",
630
  " rating: 0\n",
631
  "\n",
 
 
632
  "\n",
633
  " \n",
634
+ " address: 311, Chatuchak Weekend Market Zone 23 (Soi 31/3), Kamphaeng Phet 2 Road, Khwaeng Lat Yao, Chatuchak\n",
 
 
635
  "\n",
636
+ " lacation_name: กะหรี่ปั๊ป\n",
637
  "\n",
638
  " opening hours: N/A\n",
639
  "\n",
640
  " rating: 0\n",
641
  "\n",
 
 
642
  "\n",
643
  " \n",
644
+ " address: เจเจมอลล์ ชั้น 2 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
 
 
645
  "\n",
646
+ " lacation_name: JJ Mall One More bite Japanese bakery\n",
647
  "\n",
648
  " opening hours: {'open_now': True}\n",
649
  "\n",
650
+ " rating: 4.9\n",
 
 
651
  "\n",
652
  "\n",
653
  " \n",
654
+ " address: Rd, Khwaeng Chatuchak, แขวง จตุจักร เขต จตุจักร 35 Phahonyothin Rd, Chatuchak\n",
655
  "\n",
656
+ " lacation_name: S&P BTS หมอชิต\n",
 
 
657
  "\n",
658
  " opening hours: {'open_now': True}\n",
659
  "\n",
660
+ " rating: 3\n",
661
+ "\n",
662
+ "\n",
663
+ " \n",
664
+ " address: องค์การตลาดเพื่อเกษตร แผงที่10/17,10/24 ตลาด อตก Kamphaeng Phet Rd, Chatuchak\n",
665
+ "\n",
666
+ " lacation_name: Miss Muay Bakery สาขา ตลาดอ.ต.ก.\n",
667
  "\n",
668
+ " opening hours: {'open_now': True}\n",
669
+ "\n",
670
+ " rating: 3.8\n",
671
  "\n",
672
  "\n",
673
  " \n",
674
+ " address: Makarong @ตลาดนัดจตุจักร, โครงการ 4 ซอย 49/2 แผง 151, Chatuchak\n",
675
  "\n",
676
+ " lacation_name: Makarong\n",
677
  "\n",
678
+ " opening hours: {'open_now': False}\n",
679
  "\n",
680
+ " rating: 4.9\n",
681
  "\n",
 
682
  "\n",
683
+ " \n",
684
+ " address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
685
+ "\n",
686
+ " lacation_name: Bellinee's Bake & Brew ตลาดนัดสวนจตุจักร\n",
687
+ "\n",
688
+ " opening hours: {'open_now': True}\n",
689
+ "\n",
690
+ " rating: 3.9\n",
691
  "\n",
692
  "\n",
693
  " \n",
694
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
695
+ "Name: data_collector\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
696
  "Tool Calls:\n",
697
+ " google_places (call_gAsWvrxC5ir6m7pEva5FUnYh)\n",
698
+ " Call ID: call_gAsWvrxC5ir6m7pEva5FUnYh\n",
699
  " Args:\n",
700
+ " query: Chatuchak\n",
701
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
702
  "Name: google_places\n",
703
  "\n",
704
+ "1. Chatuchak Weekend Market\n",
705
+ "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
706
+ "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
707
  "Phone: Unknown\n",
708
+ "Website: https://www.chatuchakmarket.org/\n",
709
  "\n",
710
  "\n",
711
+ "2. Chatuchak\n",
712
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
713
+ "Google place ID: ChIJL1rMWl2c4jARQI7iXbIAAQQ\n",
714
  "Phone: Unknown\n",
715
+ "Website: Unknown\n",
716
  "\n",
717
  "\n",
718
+ "3. Chatuchak\n",
719
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
720
+ "Google place ID: ChIJLaxrJfic4jARYE_iXbIAAQM\n",
721
  "Phone: Unknown\n",
722
  "Website: Unknown\n",
723
  "\n",
724
  "\n",
725
+ "4. Chatuchak\n",
726
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
727
+ "Google place ID: ChIJwU6_rUKc4jARDmkpMHyN3ng\n",
728
  "Phone: Unknown\n",
729
  "Website: Unknown\n",
730
  "\n",
731
  "\n",
732
+ "5. Chatuchak Park\n",
733
+ "Address: Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
734
+ "Google place ID: ChIJnZuu10Oc4jAR0DkLPbMAAQ8\n",
735
  "Phone: Unknown\n",
736
  "Website: Unknown\n",
737
  "\n",
738
  "\n",
739
+ "6. Mixt Chatuchak\n",
740
+ "Address: 8 Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
741
+ "Google place ID: ChIJdZYPAOid4jARV2-4R9rzO-A\n",
742
+ "Phone: 02 079 4888\n",
743
+ "Website: http://www.mixtchatuchak.com/\n",
744
  "\n",
745
  "\n",
746
+ "7. Jatujak Plaza\n",
747
+ "Address: 599 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
748
+ "Google place ID: ChIJz9JH_RSc4jARPvh8LMgxS5Q\n",
749
+ "Phone: 02 265 9684\n",
750
  "Website: Unknown\n",
751
  "\n",
752
  "\n",
753
+ "8. Chatuchak\n",
754
+ "Address: Chatuchak, Bangkok 10900, Thailand\n",
755
+ "Google place ID: ChIJS4W6Ovic4jAR_UaLaBgO-ws\n",
756
  "Phone: Unknown\n",
757
  "Website: Unknown\n",
758
  "\n",
759
  "\n",
760
+ "9. JJ Mall Chatuchak\n",
761
+ "Address: 588 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
762
+ "Google place ID: ChIJQ2IA1xSc4jARPUC_qVZP9U4\n",
763
+ "Phone: 02 265 9999\n",
764
+ "Website: http://www.jjmall.co.th/\n",
765
  "\n",
766
  "\n",
767
+ "10. Chatuchak Night Market\n",
768
+ "Address: เลขที่ โครงการ 9 ซอย 13/1 เลขที่ 015 จตุจักร, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
769
+ "Google place ID: ChIJj2r5qFqd4jARN8g-HGfi0U0\n",
770
  "Phone: Unknown\n",
771
+ "Website: https://www.chatuchakmarket.org/\n",
772
  "\n",
773
  "\n",
774
+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
775
+ "Name: data_collector\n",
 
 
 
 
776
  "\n",
777
+ "Here is the analysis of the bakery competitors near Chatuchak Market:\n",
778
+ "\n",
779
+ "### Competitors Overview\n",
780
+ "1. **Triple D Bakery @ Chatuchak Market**\n",
781
+ " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
782
+ " - Rating: 4.9\n",
783
+ " - Open Now: No\n",
784
+ "\n",
785
+ "2. **Bakery by AU**\n",
786
+ " - Address: 12/6 Vibhavadi Rangsit Rd, Chom Phon, Chatuchak\n",
787
+ " - Rating: 5\n",
788
+ " - Open Now: Yes\n",
789
+ "\n",
790
+ "3. **Sanan Bakery**\n",
791
+ " - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
792
+ " - Rating: 4.4\n",
793
+ " - Open Now: Yes\n",
794
+ "\n",
795
+ "4. **Baked With Hearts**\n",
796
+ " - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
797
+ " - Rating: 4.6\n",
798
+ " - Open Now: Yes\n",
799
+ "\n",
800
+ "5. **The Croissant Corner**\n",
801
+ " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
802
+ " - Rating: 4.7\n",
803
+ " - Open Now: Yes\n",
804
+ "\n",
805
+ "6. **Morn Loh Hiang Bakery**\n",
806
+ " - Address: 1493 Phahonyothin Rd, Phaya Thai\n",
807
+ " - Rating: 4.6\n",
808
+ " - Open Now: Yes\n",
809
+ "\n",
810
+ "7. **S&P Big C SaphanKwai**\n",
811
+ " - Address: 618, 1 Phahonyothin Rd, Samsen Nai, Phaya Thai\n",
812
+ " - Rating: 3.7\n",
813
+ " - Open Now: Yes\n",
814
+ "\n",
815
+ "8. **3meebakery**\n",
816
+ " - Address: Project 4 Soi 48/3 Chatuchak\n",
817
+ " - Rating: 5\n",
818
+ " - Open Now: No\n",
819
+ "\n",
820
+ "9. **HUB bakery & souvenirs**\n",
821
+ " - Address: 3029\n",
822
+ " - Rating: 0\n",
823
+ " - Open Now: Yes\n",
824
+ "\n",
825
+ "10. **Neighbourhood Toast Shop**\n",
826
+ " - Address: 1058/104 Phahonyothin Rd, Chom Phon, Chatuchak\n",
827
+ " - Rating: 4\n",
828
+ " - Open Now: Yes\n",
829
+ "\n",
830
+ "11. **Twentyseven Bakery**\n",
831
+ " - Address: 197/8 Soi Pradipat, Phaya Thai\n",
832
+ " - Rating: 5\n",
833
+ " - Open Now: Yes\n",
834
+ "\n",
835
+ "12. **Kudsan Bakery & Coffee**\n",
836
+ " - Address: 170/8-10 ถ.ประดิพัทธ์ แขวงสามเสนใน, Phaya Thai\n",
837
+ " - Rating: 0\n",
838
+ " - Open Now: No\n",
839
+ "\n",
840
+ "13. **Cherpang Bakery Homemade**\n",
841
+ " - Address: 63/1 Vibhavadi Rangsit 5 Alley, Lane 1-2-2, Chom Phon, Chatuchak\n",
842
+ " - Rating: 0\n",
843
+ " - Open Now: Yes\n",
844
+ "\n",
845
+ "14. **JJ Mall One More Bite Japanese Bakery**\n",
846
+ " - Address: 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
847
+ " - Rating: 4.9\n",
848
+ " - Open Now: Yes\n",
849
+ "\n",
850
+ "15. **Miss Muay Bakery**\n",
851
+ " - Address: Kamphaeng Phet Rd, Chatuchak\n",
852
+ " - Rating: 3.8\n",
853
+ " - Open Now: Yes\n",
854
+ "\n",
855
+ "16. **Makarong**\n",
856
+ " - Address: Project 4 Soi 49/2, Chatuchak\n",
857
+ " - Rating: 4.9\n",
858
+ " - Open Now: No\n",
859
+ "\n",
860
+ "17. **Bellinee's Bake & Brew**\n",
861
+ " - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
862
+ " - Rating: 3.9\n",
863
+ " - Open Now: Yes\n",
864
+ "\n",
865
+ "### Summary\n",
866
+ "- **Total Competitors**: 17 bakeries found within a 1 km radius of Chatuchak Market.\n",
867
+ "- **Average Rating**: The ratings of these bakeries range from 0 to 5, with several highly rated options (4.5 and above).\n",
868
+ "- **Open Status**: Most bakeries are currently open, providing a competitive advantage for customer footfall.\n",
869
+ "\n",
870
+ "If you need further analysis or specific data points, please let me know!\n",
871
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
872
+ "Name: reporter\n",
873
  "\n",
874
+ "FINAL ANSWER\n",
875
  "\n",
876
+ "### Competitor Analysis of Bakeries Near Chatuchak Market\n",
 
 
 
 
877
  "\n",
878
+ "#### Overview\n",
879
+ "The analysis of bakeries near Chatuchak Market reveals a competitive landscape with a variety of options for consumers. Here are the key insights:\n",
 
 
880
  "\n",
881
+ "#### Competitors\n",
882
+ "1. **Triple D Bakery @ Chatuchak Market**\n",
883
+ " - **Rating**: 4.9\n",
884
+ " - **Open Now**: No\n",
885
  "\n",
886
+ "2. **Bakery by AU**\n",
887
+ " - **Rating**: 5\n",
888
+ " - **Open Now**: Yes\n",
 
889
  "\n",
890
+ "3. **Sanan Bakery**\n",
891
+ " - **Rating**: 4.4\n",
892
+ " - **Open Now**: Yes\n",
 
893
  "\n",
894
+ "4. **Baked With Hearts**\n",
895
+ " - **Rating**: 4.6\n",
896
+ " - **Open Now**: Yes\n",
897
  "\n",
898
+ "5. **The Croissant Corner**\n",
899
+ " - **Rating**: 4.7\n",
900
+ " - **Open Now**: Yes\n",
901
+ "\n",
902
+ "6. **Morn Loh Hiang Bakery**\n",
903
+ " - **Rating**: 4.6\n",
904
+ " - **Open Now**: Yes\n",
905
+ "\n",
906
+ "7. **S&P Big C SaphanKwai**\n",
907
+ " - **Rating**: 3.7\n",
908
+ " - **Open Now**: Yes\n",
909
+ "\n",
910
+ "8. **3meebakery**\n",
911
+ " - **Rating**: 5\n",
912
+ " - **Open Now**: No\n",
913
+ "\n",
914
+ "9. **HUB bakery & souvenirs**\n",
915
+ " - **Rating**: 0\n",
916
+ " - **Open Now**: Yes\n",
917
+ "\n",
918
+ "10. **Neighbourhood Toast Shop**\n",
919
+ " - **Rating**: 4\n",
920
+ " - **Open Now**: Yes\n",
921
+ "\n",
922
+ "11. **Twentyseven Bakery**\n",
923
+ " - **Rating**: 5\n",
924
+ " - **Open Now**: Yes\n",
925
+ "\n",
926
+ "12. **Kudsan Bakery & Coffee**\n",
927
+ " - **Rating**: 0\n",
928
+ " - **Open Now**: No\n",
929
  "\n",
930
+ "13. **Cherpang Bakery Homemade**\n",
931
+ " - **Rating**: 0\n",
932
+ " - **Open Now**: Yes\n",
933
  "\n",
934
+ "14. **JJ Mall One More Bite Japanese Bakery**\n",
935
+ " - **Rating**: 4.9\n",
936
+ " - **Open Now**: Yes\n",
 
 
937
  "\n",
938
+ "15. **Miss Muay Bakery**\n",
939
+ " - **Rating**: 3.8\n",
940
+ " - **Open Now**: Yes\n",
 
941
  "\n",
942
+ "16. **Makarong**\n",
943
+ " - **Rating**: 4.9\n",
944
+ " - **Open Now**: No\n",
 
945
  "\n",
946
+ "17. **Bellinee's Bake & Brew**\n",
947
+ " - **Rating**: 3.9\n",
948
+ " - **Open Now**: Yes\n",
 
949
  "\n",
950
+ "#### Insights\n",
951
+ "- **Total Competitors**: 17 bakeries found within a 1 km radius of Chatuchak Market.\n",
952
+ "- **Average Rating**: The ratings of these bakeries range from 0 to 5, with several highly rated options (4.5 and above).\n",
953
+ "- **Open Status**: Most bakeries are currently open, providing a competitive advantage for customer footfall.\n",
954
  "\n",
955
+ "This analysis provides a comprehensive view of the bakery market near Chatuchak Market, highlighting opportunities for differentiation and potential areas for improvement. If you need further insights or specific data points, feel free to ask!\n"
956
  ]
957
  }
958
  ],
959
  "source": [
960
+ "# question = \"วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\"\n",
961
  "\n",
962
  "# graph = workflow.compile()\n",
963
  "\n",
chatbot_multiagent.py CHANGED
@@ -226,7 +226,7 @@ graph = workflow.compile()
226
  # pass
227
 
228
  # %%
229
- # question = "ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร"
230
 
231
  # graph = workflow.compile()
232
 
 
226
  # pass
227
 
228
  # %%
229
+ # question = "วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร"
230
 
231
  # graph = workflow.compile()
232
 
prompt.py CHANGED
@@ -1,25 +1,20 @@
1
  agent_meta = [
2
  {
3
  "name": "analyst",
4
- "prompt": """You are the Analyst responsible for understanding the user's needs and guiding the data collection process.
5
- When the user asks about opening a shop or business at a specific location,
6
- you will: Comprehend the user's request and determine what analytical insights(about feasibility analysis) they need about competitors and market opportunities.
7
- Identify the necessary data required for analysis, including information about the place nearby, district or location of the specified place (for competator analysis),
8
- and type of community, household expenditures, and population in the district(for market opportunities, and feasibility analysis).
9
- Clearly communicate these data requirements to the Data Collector. Additionally keep the converstion in English."""
10
  },
11
  {
12
  "name": "data_collector",
13
- "prompt": """You are the Data Collector responsible for gathering data based on the Analyst's instructions.
14
- When you receive a request from the Analyst, you will: Use the necessary tools to gather data related to the specified location,
15
- including information about nearby places, districts, community types, household expenditures, and population demographics.
16
- Then send the data to Reporter. Additionally keep the converstion in English."""
17
  },
18
  {
19
  "name": "reporter",
20
- "prompt": """You are the Reporter responsible for compiling the data into a clear and informative report for the user.
21
- When you receive the data from the Data Collector, you will: Organize and analyze the data to generate insights about the competitive landscape and market opportunities at the specified location.
22
- Create a well-structured report that provides the user with actionable recommendations based on the analysis.
23
- Ensure the report is clear, concise, and delivered in the same language as the user's original request. But it okay if it not have some data povide."""
24
  }
25
  ]
 
1
  agent_meta = [
2
  {
3
  "name": "analyst",
4
+ "prompt": """
5
+ You are the Analyst. Extract the location and keyword (e.g., 'shop', 'coffee shop') from the user’s request and instruct the Data Collector to gather relevant data. Ensure all communication is in English.
6
+ """
 
 
 
7
  },
8
  {
9
  "name": "data_collector",
10
+ "prompt": """
11
+ You are the Data Collector. Use the tools to gather data on the location and keyword provided by the Analyst. Provide data on the number of competitors, nearby competitors, products, population, community type, household expenditures, and population data. If some data are not povided just assume it. Send the data to the Reporter. Ensure all communication is in English.
12
+ """
 
13
  },
14
  {
15
  "name": "reporter",
16
+ "prompt": """
17
+ You are the Reporter. Organize and analyze the data to generate insights about competitors and market opportunities. Include both numerical and analytical insights. If data is missing, provide a final report based on available information. Ensure you include a descriptive analytical summary at the end.
18
+ """
 
19
  }
20
  ]
tools.py CHANGED
@@ -66,22 +66,21 @@ def nearby_search(input_dict: NearbySearchInput):
66
  rating = r.get('rating', 'N/A')
67
  plus_code = r.get('plus_code', {}).get('global_code', 'N/A')
68
 
69
- strout += f"""
70
- address: {address}\n
71
- location: {location_info}\n
72
- lacation_name: {name}\n
73
- opening hours: {opening_hours}\n
74
- rating: {rating}\n
75
- plus code: {plus_code}\n\n
76
- """
77
-
78
  # strout += f"""
79
  # address: {address}\n
 
80
  # lacation_name: {name}\n
81
  # opening hours: {opening_hours}\n
82
  # rating: {rating}\n
83
  # plus code: {plus_code}\n\n
84
  # """
 
 
 
 
 
 
 
85
  return strout
86
 
87
 
 
66
  rating = r.get('rating', 'N/A')
67
  plus_code = r.get('plus_code', {}).get('global_code', 'N/A')
68
 
 
 
 
 
 
 
 
 
 
69
  # strout += f"""
70
  # address: {address}\n
71
+ # location: {location_info}\n
72
  # lacation_name: {name}\n
73
  # opening hours: {opening_hours}\n
74
  # rating: {rating}\n
75
  # plus code: {plus_code}\n\n
76
  # """
77
+
78
+ strout += f"""
79
+ address: {address}\n
80
+ lacation_name: {name}\n
81
+ opening hours: {opening_hours}\n
82
+ rating: {rating}\n\n
83
+ """
84
  return strout
85
 
86