https://www.activepieces.com logo
I added a new node but it is not showing
# 🐢|general
u
I added a new node but it is not showing on localhost UI
a
Hi @Utkarsh Kumar Patel and welcome to the server Did you add the piece name in the .env file in the server package directory in the AP_DEV_PIECES variable ? Please make sure you check this https://www.activepieces.com/docs/developers/building-pieces/overview
u
Hi @Abdul (Viva-Palestina)πŸ’” This part is done, now i getting an error while OpenAI connection using API key. { "code": "ENGINE_OPERATION_FAILURE", "params": { "message": "Failed to run engine validate auth", "context": { "status": "ERROR", "result": "Cannot find module '/Users/utkarsh/Downloads/reactJs/PromptWorkflow-Task/activepieces/dist/packages/pieces/community/openai/node_modules'\nRequire stack:\n- /Users/utkarsh/Downloads/reactJs/PromptWorkflow-Task/activepieces/cache/v3/common/main.js", "standardError": "Error: Cannot find module '/Users/utkarsh/Downloads/reactJs/PromptWorkflow-Task/activepieces/dist/packages/pieces/community/openai/node_modules'\nRequire stack:\n- /Users/utkarsh/Downloads/reactJs/PromptWorkflow-Task/activepieces/cache/v3/common/main.js\n", "standardOutput": "" } } }
I followed the exact docs flow
Can you please help.
a
are you on Windows ?
u
I am using mac
a
sadly MacOS dev environment has some issues, can you please use Github codespaces from your github account and use that to develop your piece ?
u
Okay, i will try
Heyy @Abdul (Viva-Palestina)πŸ’” getting same error
a
can you screenshot me the terminal from github codespaces ?
u
app-connections failed 400 bad request
@Abdul (Viva-Palestina)πŸ’”
a
if you try another piece
like gmail
does it work ?
u
all are working fine but while connecting openai using api key, it's showing that error
a
ok
I see
so I guess it is a bug in the openai piece building
let me check it out and get back to you, thanks for reporting
u
okay
Hi @Abdul (Viva-Palestina)πŸ’”
docs.google.com/document/d/1tHQ__6NDXOh635iIWnBtD3GKAEioZNMPDNhCCXUkO-g/edit?…
Check this task which i have to make on urgent basis
By tonight
Can you please help me in this?
Actually I’m new in activepieces
a
I am sorry, but I can't help you with this as it is outside my responsibilities and I hope you understand, however we will look into fixing the dev env for the openai piece.
u
Hi @Abdul (Viva-Palestina)πŸ’”
i have used perplexity ai and its working fine. i have made a workflow for send/forward mail which is related to customer query but after publish and conditions are matching then it repeatedly sending the mail on every 1 minute. can you guide me for this, actually its very urgent
a
I don't know, depends on your flow trigger, if your trigger happens every minute
the flow will work every minute
u
how i can check that actually on getting new mail which is match with condition then it send a mail, but in my case once it get the mail, and matched with condition it sending that mail every minute
a
don't use the every minute trigger, use the new mail trigger from gmail
then send email action from gmail
u
i used the same i.e. new mail in trigger and send mail in action
a
I don't really know, maybe check the label input in the trigger settings
I just merged a pr to main which fixes the openai issue
you can pull and use it in your DEV_PIECES env variable.
u
what label i can use in trigger for new mail?
a
check gmail labels on google and you will understand how to use them.
u
Hi @Abdul (Viva-Palestina)πŸ’”
Hi @Abdul (Viva-Palestina)πŸ’” I have added a new custom pieces- β€˜gmail-custom’ for read gmail thread and added this piece in .env file also
Can you tell me how i can use connected gmail credentials which is already connected in inbuilt gmail pieces, actually when i connect my new custom piece it’s asking for client id and client api key
a
checkout google oauth 2 on gcp
u
For custom pieces for gmail, I have to use client id and client secret manually from google cloud console?
Can i use direct connected credentials same as inbuilt pieces for gmail?
@Abdul (Viva-Palestina)πŸ’” please tell me that
a
you can just add the action to the gmail piece and open a pr.