أدوات الكتابة
توفر أداة الكتابة واجهة بسيطة ولكن قوية لعدة أدوات كتابة يستخدمها الكتّاب.
مسار الوصول
POST /text/v1/writer-tool
جسم الطلب
- inputs (
array
, مطلوب): مجموعة من المدخلات. - language (
string
, مطلوب): اللغة المراد استخدامها. - number (
number
, مطلوب): عدد العناصر المراد توليدها. - useCase (
string
, مطلوب): حالة الاستخدام لعملية التوليد. - action (
string
, مطلوب): الإجراء المراد تنفيذه. - tone (
string
, مطلوب): اسلوب النص المولدة.
هنا عدة تنسيقات للمدخلات تعتمد على حالة الاستخدام، وتوضح كما يلي:
مثال
الطلب
POST /text/v1/writer-tool
Content-Type: application/json
x-access-key: YOUR_ACCESS_KEY
{
"inputs": [
{
"jobRole": "ai machine learning dev",
"jobSkills": "communication skills, fast learner"
}
],
"language": "English",
"number": 1,
"useCase": "CoverLetter",
"action": "generate_writenow",
"tone": "Critical"
}
الاستجابة
نجاح
HTTP/1.1 200 OK
{
"data": {
"language": "English",
"useCase": "CoverLetter",
"word_count": 204,
"text": {
"choices": [
{
"text": "Dear Hiring Manager,
I am writing to express my interest in the AI Machine Learning Developer role at your company. With a strong background in communication skills and a proven track record as a fast learner, I am confident in my ability to thrive in a fast-paced and challenging environment.
My exceptional communication skills have enabled me to effectively collaborate with cross-functional teams and convey complex technical concepts in a clear and concise manner. This skill set has been instrumental in my previous roles, allowing me to drive successful project outcomes and foster strong working relationships.
Furthermore, my ability to quickly grasp new concepts and technologies has been a key asset throughout my career. I am constantly seeking out opportunities to expand my knowledge and skill set, ensuring that I am always at the forefront of industry trends and advancements.
I am excited about the opportunity to bring my unique blend of communication skills and fast-learning abilities to your team. I am confident that my dedication and passion for AI and machine learning will make me a valuable asset to your organization.
Thank you for considering my application. I look forward to the possibility of discussing my application with you further.
Sincerely,
[Your Name]",
"index": 0,
"word_count": 204
}
]
}
},
"success": true,
"message": "<process success message>"
}
فشل
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"success": false,
"message": "<An error message containing the details>"
}