{"nodes":{"rct7wmr0d4k21quf4s0ozy0wt5oo2yh7":{"type":"start","x":0,"y":0,"properties":{"title":"ChatGPT node","excerpt":"GPT nodes can be used to generate dynamic prompts from the flow. These are answered by ChatGpt. You can then use the response in the flow.","author":"GraVersal","license":"CC BY 4.0","channel":"builder","category":"Nodes"}},"31f2fz4v3uugmfnxjax46jr3erq7xwuj":{"type":"message","x":-371.70698779296873,"y":120.40601220703125,"properties":{"text":"__GPT nodes__ can be used to generate dynamic prompts from the flow. These are answered by ChatGpt. You can then use the response back in the flow again.\n\n*Note: Free text entries are processed by OpenAI. Read more about this in our [privacy policy](https://graversal.io/privacy/).*","repeatOnReentry":true}},"3mynm1fnfgtpbm746fparim6fony8h7y":{"type":"question","x":-228.76276398575504,"y":430.1848447894164,"properties":{"text":"What do you want to know?","repeatOnReentry":true,"reviewable":true}},"2lkbthm6sh7yi46d3sd2sjoggrf00ukt":{"type":"suggestion","x":-478.064,"y":516.141,"properties":{"value":"","label":"How to send user prompts to GPT?"}},"wo0ippmvmubpw2w4529iyuwnoivtookh":{"type":"message","x":-718.909,"y":657.259,"properties":{"text":"Type something","repeatOnReentry":true}},"oghlbnhj7pl7m0m5kyu5pxivszadwdf5":{"type":"prompt","x":-897.8600560623596,"y":958.0422574767932,"properties":{"placeholder":"Type your message"}},"g8q44rgyh445idkjfc0fsrtyjdljg3g2":{"type":"chatgpt","x":-829.303951171875,"y":1385.0640732421875,"properties":{"prompt":"Reply politely to the following message:\n\n{{value}}","model":"gpt-4.1-mini","repeatOnReentry":true,"systemPrompt":"You are a bot in a chat flow. Take the user's message and reply briefly and politely. Stick to small talk.","userPrompt":"{{value}}","onReentry":"reset","onChange":"reset"}},"hkdglo89f34m4rztqctbosqej9a9yx52":{"type":"message","x":-588.9839633789063,"y":1240.7899755859376,"properties":{"text":"GPT replied:\n\n{{answer}}","repeatOnReentry":true}},"551peqte6xc41arr3iq272fkwrqecaxv":{"type":"suggestion","x":-22.441762089493153,"y":533.9827458536079,"properties":{"value":"","label":"Return JSON from GPT"}},"qsl6m4pkr0kgwwagk5mjgxqsh3rm9mt9":{"type":"message","x":241.00420431132343,"y":664.5471748316986,"properties":{"text":"I'll now name a few random animals.","repeatOnReentry":true}},"glh3g9k84zg4kmeliq7y3hypnjhafuoe":{"type":"chatgpt","x":378.14090234375,"y":1322.7489389648438,"properties":{"prompt":"Name three animals. Please return them to me as strings in a flat JSON array. Example: [\"dog\", \"cat\", \"bird\"]","model":"gpt-4.1-mini","repeatOnReentry":true,"systemPrompt":"You are a bot in a chat flow. Think of three random animals and return them as a raw JSON array.","onReentry":"reset","onChange":"reset"}},"33iyj7df6lkxr4cuvwet8m0o2f7zaf83":{"type":"message","x":83.52339865358924,"y":1135.2667409047049,"properties":{"text":"I have chosen the following animals for you:\n\n{{#each animals}}\n* {{this}}\n{{/each}}","repeatOnReentry":true}},"geafrhei1vjx2to8lzfjvmnk7hgvcyrp":{"type":"conclusion","x":-212.01161714569187,"y":1400.8146683316068,"properties":{"text":"Something is wrong"}},"w0uyzlauexy1wl28g7k8zeydm9quxewr":{"type":"message","x":-227.859,"y":1098.9279877929687,"properties":{"text":"I'm very sorry. It seems we haven't paid our OpenAI bills 😇. We're currently experiencing a high volume of requests and have reached our limit for this month. If you'd like to see the examples live on a private instance without limits, please get in touch.","repeatOnReentry":true,"repeatOnChance":true}}},"edges":{"oxab6fo2enjoxmjfycgbdqyevhwk5lor":{"type":"may","from":"rct7wmr0d4k21quf4s0ozy0wt5oo2yh7","to":"31f2fz4v3uugmfnxjax46jr3erq7xwuj","properties":{"priority":4}},"sqs88kxw8g8m4njxgit8es3ypvae0ybv":{"type":"may","from":"3mynm1fnfgtpbm746fparim6fony8h7y","to":"2lkbthm6sh7yi46d3sd2sjoggrf00ukt","properties":{"priority":4,"condition":""}},"j7yuub8t1mkjrbxip4d3tyzabhq9bgap":{"type":"may","from":"2lkbthm6sh7yi46d3sd2sjoggrf00ukt","to":"wo0ippmvmubpw2w4529iyuwnoivtookh","properties":{"priority":4,"condition":"selected"}},"mzlidwfh82o9c83gm9bs0kjw2ae1ofwi":{"type":"may","from":"wo0ippmvmubpw2w4529iyuwnoivtookh","to":"oghlbnhj7pl7m0m5kyu5pxivszadwdf5","properties":{"priority":4,"condition":"arrived"}},"cejbc4hd82uscy05co9q2fnzxf32vfq4":{"type":"may","from":"oghlbnhj7pl7m0m5kyu5pxivszadwdf5","to":"g8q44rgyh445idkjfc0fsrtyjdljg3g2","properties":{"priority":4,"condition":"sent","push":"value"}},"1sjc302ain14w7i6ygub55ovo0h0nd3a":{"type":"may","from":"g8q44rgyh445idkjfc0fsrtyjdljg3g2","to":"hkdglo89f34m4rztqctbosqej9a9yx52","properties":{"priority":4,"condition":"done","push":"answer"}},"b47ofylciw6ml3vc892516fqxksracw7":{"type":"call","from":"hkdglo89f34m4rztqctbosqej9a9yx52","to":"3mynm1fnfgtpbm746fparim6fony8h7y","properties":{"priority":4,"condition":"arrived","method":"reset"}},"i1heovingo30pqui6i5zt8pwqz8f0gx8":{"type":"may","from":"3mynm1fnfgtpbm746fparim6fony8h7y","to":"551peqte6xc41arr3iq272fkwrqecaxv","properties":{"priority":4,"condition":""}},"x0kviottzk8k8bnc80bfjcx56cvj167i":{"type":"may","from":"551peqte6xc41arr3iq272fkwrqecaxv","to":"qsl6m4pkr0kgwwagk5mjgxqsh3rm9mt9","properties":{"priority":4,"condition":"selected"}},"rjvkxzwiem8ckte75mgajvs2jdm7ojn2":{"type":"may","from":"qsl6m4pkr0kgwwagk5mjgxqsh3rm9mt9","to":"glh3g9k84zg4kmeliq7y3hypnjhafuoe","properties":{"priority":4,"condition":"arrived"}},"ev1ueqklf3hrezt87uxnkvpwm6j7dto8":{"type":"may","from":"glh3g9k84zg4kmeliq7y3hypnjhafuoe","to":"33iyj7df6lkxr4cuvwet8m0o2f7zaf83","properties":{"priority":4,"condition":"done","push":"answer","as":"animals"}},"aoxemgbdfl4a7pv1301fvid6ssjzkojg":{"type":"call","from":"33iyj7df6lkxr4cuvwet8m0o2f7zaf83","to":"3mynm1fnfgtpbm746fparim6fony8h7y","properties":{"priority":4,"condition":"arrived","method":"reset"}},"9rqlikaec97gctny345yx4f9b6q0ihzi":{"type":"may","from":"glh3g9k84zg4kmeliq7y3hypnjhafuoe","to":"geafrhei1vjx2to8lzfjvmnk7hgvcyrp","properties":{"priority":4,"condition":"error"}},"76pss8uhzra2vp2hn2qg5fr763d8oshi":{"type":"may","from":"g8q44rgyh445idkjfc0fsrtyjdljg3g2","to":"geafrhei1vjx2to8lzfjvmnk7hgvcyrp","properties":{"priority":4,"condition":"error"}},"61o2iymkr2lzyf450s7gm1f1o2yp07xx":{"type":"may","from":"31f2fz4v3uugmfnxjax46jr3erq7xwuj","to":"3mynm1fnfgtpbm746fparim6fony8h7y","properties":{"priority":4,"condition":"arrived"}},"7cuhjp68q29bv7yepm4wj13u6nyp4rae":{"type":"may","from":"geafrhei1vjx2to8lzfjvmnk7hgvcyrp","to":"w0uyzlauexy1wl28g7k8zeydm9quxewr","properties":{"priority":5}},"qzkau6ng0v4g3cwh5dnc5ptjnw8xxjo6":{"type":"call","from":"w0uyzlauexy1wl28g7k8zeydm9quxewr","to":"3mynm1fnfgtpbm746fparim6fony8h7y","properties":{"priority":4,"condition":"arrived","method":"reset"}}}}