API
AI से ईमेल का एक हिस्सा दोबारा लिखें
किसी विषय या बॉडी के पाँच तक अलग-अलग संस्करण।
POST/emails/rewrite
असली कॉल आपके वर्कस्पेस पर चलाता है।
POST /emails/rewrite
किसी विषय या बॉडी के पाँच तक अलग-अलग संस्करण।
उदाहरण
emails:send चाहिए। action इनमें से एक है: shorten, lengthen, rephrase, formal, casual या custom, और custom के लिए instruction चाहिए, जो बताए कि क्या बदलना है। target या तो body होता है, जो डिफ़ॉल्ट है, या subject, और count 1 से 5 संस्करण माँगता है, डिफ़ॉल्ट रूप से 3।
curl -X POST "$OE/emails/rewrite" -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "text": "Hey, did you get a chance to look at the contract?", "action": "formal", "count": 2 }'{ "object": "rewrite", "target": "body", "variations": [ "Hello, I wanted to ask whether you have had a chance to review the contract.", "Good morning. Have you been able to look over the contract yet?" ]}threadId दोबारा लिखे पाठ को उस बातचीत के मुताबिक़ ढालता है जिसमें वह जवाब देता है, और इसके लिए threads:read चाहिए।
संस्करण कभी मूल पाठ को नहीं दोहराते, और हर कॉल एक AI कार्रवाई ख़र्च करती है।