Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
59
activepieces-fork/packages/pieces/community/exa/src/index.ts
Normal file
59
activepieces-fork/packages/pieces/community/exa/src/index.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { getContentsAction } from './lib/actions/get-contents';
|
||||
import { generateAnswerAction } from './lib/actions/generate-answer';
|
||||
import { performSearchAction } from './lib/actions/perform-search';
|
||||
import { findSimilarLinksAction } from './lib/actions/find-similar-links';
|
||||
import { createCustomApiCallAction, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { makeRequest } from './lib/common';
|
||||
|
||||
const markdownDescription = `Obtain your API key from [Dashboard Setting](https://dashboard.exa.ai/api-keys).`;
|
||||
|
||||
export const exaAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: markdownDescription,
|
||||
required: true,
|
||||
validate:async ({auth})=>{
|
||||
try
|
||||
{
|
||||
await makeRequest(auth,HttpMethod.POST,
|
||||
'/search',{query:'Activepieces'}
|
||||
)
|
||||
|
||||
return{
|
||||
valid:true
|
||||
}
|
||||
|
||||
}catch(e)
|
||||
{
|
||||
return{
|
||||
valid:false,
|
||||
error:'Invalid API Key.'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export const exa = createPiece({
|
||||
displayName: 'Exa',
|
||||
description: 'AI-powered search and content extraction from the web.',
|
||||
auth: exaAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/exa.png',
|
||||
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE,PieceCategory.PRODUCTIVITY],
|
||||
authors: ['krushnarout','kishanprmr'],
|
||||
actions: [
|
||||
getContentsAction,
|
||||
generateAnswerAction,
|
||||
performSearchAction,
|
||||
findSimilarLinksAction,
|
||||
createCustomApiCallAction({
|
||||
auth:exaAuth,
|
||||
baseUrl: () => 'https://api.exa.ai',
|
||||
authMapping: async (auth) => ({
|
||||
'x-api-key': `${auth}`,
|
||||
}),
|
||||
})
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user