has anyone experimented with function calling with chatgpt and the arcgis javascript api

490
2
Jump to solution
11-16-2023 06:39 PM
pillais
New Contributor

has anyone experimented with function calling with chatgpt and the arcgis javascript api / arcgis server functions

0 Kudos
1 Solution

Accepted Solutions
ViktorSafar
Occasional Contributor II

Yes. Although I am not 100% sure what you're asking. 

Simple example: I tell chatgpt that my view variable is called "mapView" and to answer using ArcGIS Maps SDK for JS. Then I prompt it: go to Paris. It figures out that it needs coordinates for Paris and replies with "mapView.goTo(whatever the coordinate object is)". I then, very insecurely, eval() the answer. 

View solution in original post

2 Replies
ViktorSafar
Occasional Contributor II

Yes. Although I am not 100% sure what you're asking. 

Simple example: I tell chatgpt that my view variable is called "mapView" and to answer using ArcGIS Maps SDK for JS. Then I prompt it: go to Paris. It figures out that it needs coordinates for Paris and replies with "mapView.goTo(whatever the coordinate object is)". I then, very insecurely, eval() the answer. 

pillais
New Contributor

here's another third party example - https://aino.world/

0 Kudos