Example Calls to OpenAI from Inside CRANQ

CRANQ is a native AI platform, so you can use OpenAI from inside any of your steps, and during CRANQ's beta, this is 100% free. This workflow gives you some example steps showing how to use OpenAI from inside CRANQ. Have a look at each one, configure it according to the instructions, then press Proceed
Import Workflow

-------------------------------------------------------------------------------- subject: cranq.ai flow export version: 1.0 title: Calling OpenAI from Within a CRANQ Step: Examples ------------------------------------ BEGIN ------------------------------------- eyJmbG93Ijp7ImlkIjoiaWQtMDAwMDAwIiwidGl0bGUiOiJDYWxsaW5nIE9wZW5BSSBmcm9tIFdpdGhp biBhIENSQU5RIFN0ZXA6ICBFeGFtcGxlcyIsImRlc2NyaXB0aW9uIjoiV2l0aGluIENSQU5RLCB5b3Ug aGF2ZSBhY2Nlc3MgdG8gT3BlbkFJLCBhbmQgY2FuIHVzZSBpdCBhcyBhIHJlc291cmNlIGZvciB5b3Vy IHN0ZXBzLiBcblxuSGVyZSBhcmUgc29tZSBleGFtcGxlIHN0ZXBzIHRoYXQgc2hvdyB5b3UgaG93IHlv dSBjYW4gdXNlIE9wZW5BSSB3aXRoaW4gYSBDUkFOUSB3b3JrZmxvdy4gIExldCB1cyBrbm93IGhvdyB5 b3UgZ2V0IG9uLCBhbmQgd2hhdCBuZXcgd2F5cyB5b3UgZmluZCB0byB1c2UgT3BlbkFJLiIsImNyZWF0 ZWRBdCI6MTcxMDQxNTAxMzM3MCwidXBkYXRlZEF0IjoxNzEwNDI4NjY5OTQzLCJhY2Nlc3NlZEF0Ijox NzEwNDI4NjY5OTQzfSwiZ3JvdXBzIjpbXSwic3RlcHMiOlt7ImlkIjoiaWQtYmNmNmY4IiwidGl0bGUi OiJXcml0ZSBUZXh0IiwiZGVzY3JpcHRpb24iOiJTZW5kIHRoZSBiZWxvdyBwcm9tcHQgdG8gT3BlbkFJ OlxuXG4nV3JpdGUge251bWJlciBvZiB3b3Jkc30gb24ge3N1YmplY3R9IGluIHRoZSBzcGVjaWZpZWQg e3N0eWxlfS4gIFJldHVybiB0aGUgb3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jb25zdCBwcm9tcHQgPSBgQW5hbHlzZSB0aGUgcHJvdmlkZWQgZGF0YSwgYW5kIGdpdmUg YSBicmllZiB0ZXh0IGFuYWx5c2lzLCBpbmNsdWRpbmcgJSBncm93dGggcmF0ZXMgYW5kIENBR1Igd2hl cmUgYXBwcm9wcmlhdGU6ICR7ZGF0YX1gO1xuXG4gICAgY29uc3QgcmVxdWVzdEJvZHkgPSB7XG4gICAg ICAgIFwibW9kZWxcIjogXCJncHQtMy41LXR1cmJvXCIsXG4gICAgICAgIFwibWVzc2FnZXNcIjogW1xu ICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFwicm9sZVwiOiBcInN5c3RlbVwiLFxuICAgICAg ICAgICAgICAgIFwiY29udGVudFwiOiBcIllvdSBhcmUgYSB3cml0ZXJcIlxuICAgICAgICAgICAgfSxc biAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBcInJvbGVcIjogXCJ1c2VyXCIsXG4gICAgICAg ICAgICAgICAgXCJjb250ZW50XCI6IHByb21wdFxuICAgICAgICAgICAgfVxuICAgICAgICBdXG4gICAg fTtcblxuICAgIHRyeSB7XG4gICAgICAgIGNvbnN0IHJlc3BvbnNlID0gYXdhaXQgYXhpb3MucG9zdCgn aHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MS9jaGF0L2NvbXBsZXRpb25zJywgcmVxdWVzdEJvZHkpO1xu ICAgICAgICBjb25zdCBhbmFseXNpcyA9IHJlc3BvbnNlLmRhdGEuY2hvaWNlc1swXS5tZXNzYWdlLmNv bnRlbnQ7XG4gICAgICAgIHJldHVybiB7IGFuYWx5c2lzIH07XG4gICAgfSBjYXRjaCAoZXJyb3IpIHtc biAgICAgICAgaWYgKGVycm9yLnJlc3BvbnNlICYmIGVycm9yLnJlc3BvbnNlLnN0YXR1cyA9PT0gNDAz KSB7XG4gICAgICAgICAgICB0aHJvdyBlcnJvci5yZXNwb25zZS5zdGF0dXNUZXh0O1xuICAgICAgICB9 XG4gICAgICAgIH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yJheGlvcyJdLCJzdW1tYXJ5 IjoiUmV0dXJucyBhIHN1bW1hcnkgb2YgdGhlIHRleHQgb24gdGhlIHByb3ZpZGVkIFVSTC4iLCJhcGlz IjpbIm9wZW5haWNsaWVudGtleSJdLCJzaWduYXR1cmUiOiJMSlE4UnBhT0M2TlFMTlAxcEU0Snp5YVRw ZkVMM3BHSXBhZW02YThyeXA0V2xpVzYrRVM3WWp1M2EwNXFLc2JKMTFBRVc5dXhRdmQveG8rMURpcTZC Zz09IiwicGFyYW1ldGVyc0hhc2giOiJiMjExODRkZjhkY2VjYzVlZGI0MjA0Njc1NjBjOTRhZDE2MjM0 ZjFiIn19XSwicGFyYW1ldGVycyI6W119 ------------------------------------- END --------------------------------------

Inputs
AI Description
Required connections
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected