const e={data:{edges:[{id:"edge-1",selected:!1,source:"21-1",sourceHandle:"right",target:"21-2",targetHandle:"left"},{id:"edge-2",selected:!1,source:"21-4",sourceHandle:"right",target:"21-3",targetHandle:"left"},{id:"edge-3",selected:!1,source:"21-2",sourceHandle:"right",target:"21-4",targetHandle:"left"}],nodes:[{connectable:!0,data:[],dragging:!1,height:70,id:"21-1",position:{x:94.80498773507765,y:87.5},positionAbsolute:{x:94.80498773507765,y:87.5},selected:!1,sourcePosition:"right",targetPosition:"left",type:"trigger",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"21-2",position:{x:430,y:87.5},positionAbsolute:{x:497,y:110},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"21-3",position:{x:928.8331970564186,y:85.31439084219133},positionAbsolute:{x:928.8331970564186,y:85.31439084219133},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:[],dragging:!1,height:75,id:"21-4",position:{x:754.2669664758791,y:83.90719542109568},positionAbsolute:{x:754.2669664758791,y:83.90719542109568},selected:!1,sourcePosition:"right",targetPosition:"left",type:"jsonParser",width:75},{connectable:!0,data:{color:"purple",text:`## Support Form

Starts when a user submits the support form and sends the submitted details to OpenAI.`},dragging:!1,height:145,id:"21-6",position:{x:101.36569910057233,y:-105.26737530662302},positionAbsolute:{x:101.36569910057233,y:-105.26737530662302},resizing:!1,selected:!1,sourcePosition:"right",style:{height:145,width:235},targetPosition:"left",type:"stickyNote",width:235,zIndex:-1},{connectable:!0,data:{color:"blue",text:`## AI Reply Writer

Analyzes the support request and creates a confirmation email with subject, body, category, and priority.`},dragging:!1,height:150,id:"21-7",position:{x:429.27902698282924,y:-109.17457072771869},positionAbsolute:{x:429.27902698282924,y:-109.17457072771869},resizing:!1,selected:!1,sourcePosition:"right",style:{height:150,width:240},targetPosition:"left",type:"stickyNote",width:240,zIndex:-1},{connectable:!0,data:{color:"green",text:`## Parse AI Output

Extracts the AI-generated subject and body so Gmail can use them separately.`},dragging:!1,height:150,id:"21-8",position:{x:699.8513900245298,y:-110.26737530662304},positionAbsolute:{x:702.8513900245298,y:-110.26737530662304},resizing:!1,selected:!1,sourcePosition:"right",style:{height:150,width:200},targetPosition:"left",type:"stickyNote",width:200,zIndex:-1},{connectable:!0,data:{color:"orange",text:`## Send Confirmation

Sends the AI-written support confirmation email to the user’s submitted email address.`},dragging:!1,height:150,id:"21-9",position:{x:926.1547424366313,y:-114.63859362224035},positionAbsolute:{x:930.1547424366313,y:-114.63859362224035},resizing:!1,selected:!0,sourcePosition:"right",style:{height:150,width:240},targetPosition:"left",type:"stickyNote",width:240,zIndex:-1}],viewport:{x:0,y:0,zoom:1}},map:{id:"21-1",next:{id:"21-2",next:{id:"21-4",next:{id:"21-3",previous:"21-4",type:"action"},previous:"21-2",type:"jsonParser"},previous:"21-1",type:"action"},previous:null,type:"trigger"},nodes:[{app_slug:"bitForm",data:{db:{formId:"4"}},field_mapping:{configs:{"form-id":{value:"4"},"hook-listener":{value:""}},data:[],repeaters:[]},machine_slug:"submitSuccess",node_id:"21-1",variables:[{key:"form_id",type:"string",value:"4"},{key:"entry_id",type:"integer",value:56},{key:"form_data",type:"collection",value:[{key:"b4-2",type:"string",value:"Iona"},{key:"b4-3",type:"string",value:"Atkinson"},{key:"b4-4",type:"string",value:"binuny@mailinator.com"},{key:"b4-6",type:"string",value:"Hi Team, I’m facing an issue with the plugin. I set up the integration and followed the steps from the documentation, but the data is not being sent properly after form submission. When I submit the form, it shows as submitted successfully on the website, but the data does not appear in the connected app. I also tried reconnecting the account and saving the integration again, but the issue is still happening. Could you please check this and let me know what might be wrong? Website URL: https://example.com Plugin: Bit Integrations Plugin Version: Latest WordPress Version: Latest Thanks."},{key:"b4-7",type:"array",value:[{key:0,type:"string",value:"Bug / Error"}]}]},{key:"files",type:"collection",value:[]}]},{app_slug:"openAi",data:{db:{advanceFeature:!0,connectionId:18,messagesList:[[{name:"role",value:"user"},{name:"content",value:[{type:"string",value:"You are a friendly customer support assistant for a WordPress plugin company."},{type:"string",value:`
`},{type:"string",value:"A user has submitted a support form. Analyze the submitted issue and create a confirmation email reply."},{type:"string",value:`
`},{type:"string",value:"Form submission details:"},{type:"string",value:`
`},{type:"string",value:"First Name: "},{dType:"string",label:"1. b4-2",mixInputId:"blue-seas-sing",nodeId:"21-1",path:"form_data.b4-2",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Last Name: "},{dType:"string",label:"1. b4-3",mixInputId:"khaki-ways-sneeze",nodeId:"21-1",path:"form_data.b4-3",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Email:"},{dType:"string",label:"1. b4-4",mixInputId:"sharp-terms-build",nodeId:"21-1",path:"form_data.b4-4",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Issue Type: "},{dType:"array",label:"1. b4-7 [ ]",mixInputId:"easy-doors-shave",nodeId:"21-1",path:"form_data.b4-7",type:"variable"},{type:"string",value:`
`},{type:"string",value:"User Message:"},{dType:"string",label:"1. b4-6",mixInputId:"floppy-wombats-visit",nodeId:"21-1",path:"form_data.b4-6",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Your task:"},{type:"string",value:`
`},{type:"string",value:"1. Thank the user by their first name."},{type:"string",value:`
`},{type:"string",value:"2. Confirm that we received their support request."},{type:"string",value:`
`},{type:"string",value:"3. Briefly summarize the issue they submitted."},{type:"string",value:`
`},{type:"string",value:'4. If the issue type is "Bug / Error", mention that our team will review and investigate the issue.'},{type:"string",value:`
`},{type:"string",value:"5. If the user did not provide enough details, politely ask them to share:"},{type:"string",value:`
`},{type:"string",value:"   - Screenshot or screen recording"},{type:"string",value:`
`},{type:"string",value:"   - Error message"},{type:"string",value:`
`},{type:"string",value:"   - Plugin name and version"},{type:"string",value:`
`},{type:"string",value:"   - WordPress version"},{type:"string",value:`
`},{type:"string",value:"   - Website URL"},{type:"string",value:`
`},{type:"string",value:"   - Steps to reproduce the issue"},{type:"string",value:`
`},{type:"string",value:"6. Do not say the issue is fixed.7. Do not promise an exact resolution time.8. Keep the tone professional, friendly, and easy to understand."},{type:"string",value:`
`},{type:"string",value:"9. Return only one valid JSON object.10. Do not include markdown, code blocks, explanations, or extra text."},{type:"string",value:`
`},{type:"string",value:"11. Do not wrap the JSON inside quotes."},{type:"string",value:`
`},{type:"string",value:'12. The JSON must have exactly two top-level fields: subject and body.Return the response in this exact JSON structure:{ "subject": "Write the email subject here", "body": "Write the full email body here"}'}]}]],model:"gpt-5.4-2026-03-05",responseId:"object"}},field_mapping:{configs:{"connection-id":{value:18},"context-length":{value:[]},"memory-key":{value:[]},"memory-key-switch":{value:!1}},data:[{path:"model",value:"gpt-5.4-2026-03-05"},{path:"max_tokens",value:[]},{path:"advance-feature",value:!0},{path:"response_format",value:"text"},{path:"reasoning_effort",value:null},{path:"temperature",value:[]},{path:"top_p",value:[]},{path:"n",value:[]},{path:"frequency_penalty",value:[]},{path:"presence_penalty",value:[]},{path:"seed",value:[]}],repeaters:{"messages-list":{value:[[{key:"role",value:"user"},{key:"content",value:[{type:"string",value:"You are a friendly customer support assistant for a WordPress plugin company."},{type:"string",value:`
`},{type:"string",value:"A user has submitted a support form. Analyze the submitted issue and create a confirmation email reply."},{type:"string",value:`
`},{type:"string",value:"Form submission details:"},{type:"string",value:`
`},{type:"string",value:"First Name: "},{dType:"string",label:"1. b4-2",mixInputId:"blue-seas-sing",nodeId:"21-1",path:"form_data.b4-2",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Last Name: "},{dType:"string",label:"1. b4-3",mixInputId:"khaki-ways-sneeze",nodeId:"21-1",path:"form_data.b4-3",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Email:"},{dType:"string",label:"1. b4-4",mixInputId:"sharp-terms-build",nodeId:"21-1",path:"form_data.b4-4",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Issue Type: "},{dType:"array",label:"1. b4-7 [ ]",mixInputId:"easy-doors-shave",nodeId:"21-1",path:"form_data.b4-7",type:"variable"},{type:"string",value:`
`},{type:"string",value:"User Message:"},{dType:"string",label:"1. b4-6",mixInputId:"floppy-wombats-visit",nodeId:"21-1",path:"form_data.b4-6",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Your task:"},{type:"string",value:`
`},{type:"string",value:"1. Thank the user by their first name."},{type:"string",value:`
`},{type:"string",value:"2. Confirm that we received their support request."},{type:"string",value:`
`},{type:"string",value:"3. Briefly summarize the issue they submitted."},{type:"string",value:`
`},{type:"string",value:'4. If the issue type is "Bug / Error", mention that our team will review and investigate the issue.'},{type:"string",value:`
`},{type:"string",value:"5. If the user did not provide enough details, politely ask them to share:"},{type:"string",value:`
`},{type:"string",value:"   - Screenshot or screen recording"},{type:"string",value:`
`},{type:"string",value:"   - Error message"},{type:"string",value:`
`},{type:"string",value:"   - Plugin name and version"},{type:"string",value:`
`},{type:"string",value:"   - WordPress version"},{type:"string",value:`
`},{type:"string",value:"   - Website URL"},{type:"string",value:`
`},{type:"string",value:"   - Steps to reproduce the issue"},{type:"string",value:`
`},{type:"string",value:"6. Do not say the issue is fixed.7. Do not promise an exact resolution time.8. Keep the tone professional, friendly, and easy to understand."},{type:"string",value:`
`},{type:"string",value:"9. Return only one valid JSON object.10. Do not include markdown, code blocks, explanations, or extra text."},{type:"string",value:`
`},{type:"string",value:"11. Do not wrap the JSON inside quotes."},{type:"string",value:`
`},{type:"string",value:'12. The JSON must have exactly two top-level fields: subject and body.Return the response in this exact JSON structure:{ "subject": "Write the email subject here", "body": "Write the full email body here"}'}]}]]},"optional-field-list":{path:"optionalFields",value:[]},"stop-sequences-list":{value:[]}}},machine_slug:"createCompletion",node_id:"21-2",variables:[{key:"id",type:"string",value:"chatcmpl-DjMNbHHbnOG8LjJt287xZgqgeRvXp"},{key:"object",type:"string",value:"chat.completion"},{key:"created",type:"integer",value:1779703159},{key:"model",type:"string",value:"gpt-5.4-2026-03-05"},{key:"choices",type:"array",value:[{key:0,type:"collection",value:[{key:"index",type:"integer",value:0},{key:"message",type:"collection",value:[{key:"role",type:"string",value:"assistant"},{key:"content",type:"string",value:String.raw`{"subject":"We received your support request about Bit Integrations","body":"Hi Iona,\n\nThank you for contacting us. We’ve received your support request.\n\nFrom your message, I understand that you set up the Bit Integrations plugin and followed the documentation, but after submitting the form successfully on your website, the data is not appearing in the connected app. You also tried reconnecting the account and saving the integration again, but the issue is still continuing.\n\nOur team will review and investigate this bug/error further.\n\nThank you for already sharing your website URL, plugin name, plugin version, and WordPress version. To help us check this more efficiently, please also send us the following if possible:\n- A screenshot or screen recording of the issue\n- Any error message you see\n- The exact steps to reproduce the issue\n\nOnce we have these details, we’ll be in a better position to investigate what might be going wrong.\n\nBest regards,\nSupport Team"}`},{key:"refusal",type:"NULL",value:null},{key:"annotations",type:"collection",value:[]}]},{key:"finish_reason",type:"string",value:"stop"}]}]},{key:"usage",type:"collection",value:[{key:"prompt_tokens",type:"integer",value:419},{key:"completion_tokens",type:"integer",value:209},{key:"total_tokens",type:"integer",value:628},{key:"prompt_tokens_details",type:"collection",value:[{key:"cached_tokens",type:"integer",value:0},{key:"audio_tokens",type:"integer",value:0}]},{key:"completion_tokens_details",type:"collection",value:[{key:"reasoning_tokens",type:"integer",value:0},{key:"audio_tokens",type:"integer",value:0},{key:"accepted_prediction_tokens",type:"integer",value:0},{key:"rejected_prediction_tokens",type:"integer",value:0}]}]},{key:"service_tier",type:"string",value:"default"},{key:"system_fingerprint",type:"NULL",value:null}]},{app_slug:"gmail",data:{db:{bodyDb:[{dType:"string",label:"4. body",mixInputId:"ready-sloths-walk",nodeId:"21-4",path:"body",type:"variable"}],connectionId:6,emailTo:[[{name:"email",value:[{dType:"string",label:"1. b4-4",mixInputId:"new-masks-cut",nodeId:"21-1",path:"form_data.b4-4",type:"variable"}]}]],fromEmail:[{type:"string",value:"example@gmail.com"}],fromName:[{type:"string",value:"XYZ"}],subjectDb:[{dType:"string",label:"4. subject",mixInputId:"sharp-crabs-see",nodeId:"21-4",path:"subject",type:"variable"}]}},field_mapping:{configs:{"connection-id":{value:6}},data:[{path:"subject",value:[{dType:"string",label:"4. subject",mixInputId:"sharp-crabs-see",nodeId:"21-4",path:"subject",type:"variable"}]},{path:"body",value:[{dType:"string",label:"4. body",mixInputId:"ready-sloths-walk",nodeId:"21-4",path:"body",type:"variable"}]},{path:"body_type",value:"plain"},{path:"label",value:null},{path:"from_email",value:[{type:"string",value:"example@gmail.com"}]},{path:"from_name",value:[{type:"string",value:"XYZ"}]},{path:"reply_to",value:null}],repeaters:{attachment:{value:[]},"bcc-email":{value:[[{key:"email",value:[]}]]},"cc-email":{value:[[{key:"email",value:[]}]]},"email-to":{value:[[{key:"email",value:[{dType:"string",label:"1. b4-4",mixInputId:"new-masks-cut",nodeId:"21-1",path:"form_data.b4-4",type:"variable"}]}]]}}},machine_slug:"sendEmail",node_id:"21-3",variables:[{key:"id",type:"string",value:"19e5e9488282e2ae"},{key:"threadId",type:"string",value:"19e5e9488282e2ae"},{key:"labelIds",type:"array",value:[{key:0,type:"string",value:"SENT"}]}]},{app_slug:"tools",data:{jsonParser:{value:[{dType:"string",label:"2. content",mixInputId:"dirty-adults-heal",nodeId:"21-2",path:"choices.0.message.content",type:"variable"}]}},field_mapping:null,machine_slug:"jsonParser",node_id:"21-4",variables:[{key:"subject",type:"string",value:"We received your support request about Bit Integrations"},{key:"body",type:"string",value:`Hi Iona,

Thank you for contacting us. We’ve received your support request.

From your message, I understand that you set up the Bit Integrations plugin and followed the documentation, but after submitting the form successfully on your website, the data is not appearing in the connected app. You also tried reconnecting the account and saving the integration again, but the issue is still continuing.

Our team will review and investigate this bug/error further.

Thank you for already sharing your website URL, plugin name, plugin version, and WordPress version. To help us check this more efficiently, please also send us the following if possible:
- A screenshot or screen recording of the issue
- Any error message you see
- The exact steps to reproduce the issue

Once we have these details, we’ll be in a better position to investigate what might be going wrong.

Best regards,
Support Team`}]}]};export{e as default};
