Action

Search AI Mega Action

Posted by ap3, Last update 14 days ago

UPDATES

14 days ago

Raised Exa’s priority

Search Perplexity, ChatGPT, Grok, Exa, You, Gemini, Globe, Brave, Andi, Komo, Phind, Claude, Bing, Yep, Copilot

Steps

  • script

    /* Action created by ap3, based on an action created by Jimmy Reekes who built off of Tim Nahumck's work */
    
    var actions = [
        "Perplexity", "Exa", "You", "Globe", "ChatGPT", "Brave", "Andi", "Komo", "Phind", "Bing"
    ];
    
    var p = Prompt.create();
    p.title = "Select AI Search Engine";
    for (i = 0; i < actions.length; i++) {
        p.addButton(actions[i]);
    }
    var con = p.show();
    
    if (con) {
        var content = draft.processTemplate("[[selection]]");
        var output = encodeURIComponent(content);
        
        var urls = {
            "Perplexity": "https://www.perplexity.ai/search?q=",
            "ChatGPT": "https://chat.openai.com/search?q=",
            "Grok":"https://grok.x.ai/search?q=",
            "Exa": "https://exa.ai/search?q=",
            "You": "https://you.com/search?q=",
            "Arc": "https://arc.net/search?q=",
            "Gemini": "https://gemini.google.com/search?q=",
            "Globe": "https://explorer.globe.engineer/search?q=",
            "Brave": "https://search.brave.com/search?q=",
            "Andi": "https://andisearch.com/search?q=",
            "Komo": "https://komo.ai/search?q=",
            "Phind": "https://phind.com/search?q=",
            "Claude": "https://claude.ai/search?q=",
            "Bing": "https://www.bing.com/search?q=",
            "Yep": "https://yep.com/search?q=",
            "Copilot": "https://copilot.microsoft.com/search?q="
        };
    
        var selectedUrl = urls[p.buttonPressed];
        if (selectedUrl) {
            var searchUrl = selectedUrl + output;
            var result = app.openURL(searchUrl, true);
        }
    } else {
        context.cancel();
    }

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.