diff --git a/resources/Assign ServiceNow incidents on Slack based on the language.yaml b/resources/Assign ServiceNow incidents on Slack based on the language.yaml deleted file mode 100644 index 08b2232c7..000000000 --- a/resources/Assign ServiceNow incidents on Slack based on the language.yaml +++ /dev/null @@ -1,242 +0,0 @@ -$integration: 'http://ibm.com/appconnect/integration/v2/integrationFile' -integration: - type: trigger-action - trigger-interfaces: - trigger-interface-1: - type: event-trigger - triggers: - CREATED: - input-context: - data: incident - assembly: - $ref: '#/integration/assemblies/assembly-1' - options: {} - connector-type: servicenow - action-interfaces: - action-interface-1: - type: api-action - business-object: Identify - connector-type: watsonlt - actions: - IDENTIFY: {} - action-interface-2: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - action-interface-3: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - action-interface-4: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - assemblies: - assembly-1: - assembly: - execute: - - custom-action: - name: Watson Language Translator Identify - target: - $ref: '#/integration/action-interfaces/action-interface-1' - action: IDENTIFY - map: - mappings: - - text: - template: '{{$Trigger.short_description}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - if: - name: If - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - branch: - - condition: - '{{$WatsonLanguageTranslatorIdentify.languages[0].language}}': - =: en - execute: - - create-action: - name: Slack Create message - target: - $ref: '#/integration/action-interfaces/action-interface-2' - map: - mappings: - - channel: - template: C7V8QT9QE - - text: - template: >- - New incident: {{$Trigger.sys_id}} - {{$Trigger.short_description}} - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: SlackCreatemessage - $ref: >- - #/block/If/node-output/Slack Create - message/response/payload - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - mappings: - - team: - template: English team - - condition: - '{{$WatsonLanguageTranslatorIdentify.languages[0].language}}': - =: fr - execute: - - create-action: - name: Slack Create message 2 - target: - $ref: '#/integration/action-interfaces/action-interface-3' - map: - mappings: - - channel: - template: C7UC6VD1Q - - text: - template: >- - Nouvel incident: {{$Trigger.sys_id}} - {{$Trigger.short_description}} - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: SlackCreatemessage2 - $ref: >- - #/block/If/node-output/Slack Create message - 2/response/payload - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - mappings: - - team: - template: French team - else: - execute: [] - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - mappings: - - team: - template: General - output-schema: - required: - - team - properties: - team: - type: string - title: team - type: object - - if: - name: If 2 - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - branch: - - condition: - '{{$Trigger.urgency}}': - =: '1' - execute: - - create-action: - name: Slack Create message 3 - target: - $ref: '#/integration/action-interfaces/action-interface-4' - map: - mappings: - - channel: - template: C7UDQ9KSQ - - text: - template: >- - New urgent incident raised against - {{$If.team}}: {{$Trigger.sys_id}} - {{$Trigger.short_description}} - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: SlackCreatemessage3 - $ref: >- - #/block/If 2/node-output/Slack Create message - 3/response/payload - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - mappings: [] - else: - execute: [] - completion-action: - terminate: - info: - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: WatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - message: OK - status-code: 200 - output-schema: {} - name: Assign ServiceNow incidents on Slack based on the language -models: {} diff --git a/resources/Create a Slack translation bot.yaml b/resources/Create a Slack translation bot.yaml deleted file mode 100644 index f28e13f43..000000000 --- a/resources/Create a Slack translation bot.yaml +++ /dev/null @@ -1,238 +0,0 @@ -$integration: 'http://ibm.com/appconnect/integration/v2/integrationFile' -integration: - type: trigger-action - trigger-interfaces: - trigger-interface-1: - connector-type: slack - type: event-trigger - triggers: - CREATED: - input-context: - data: RawMessage - assembly: - $ref: '#/integration/assemblies/assembly-1' - options: - webhookURLSuffix: 74e41714-296a-538f-8620-01e2924a4588 - action-interfaces: - action-interface-1: - type: api-action - business-object: Identify - connector-type: watsonlt - actions: - IDENTIFY: {} - action-interface-2: - type: api-action - business-object: Translate - connector-type: watsonlt - actions: - TRANSLATE: {} - action-interface-3: - type: api-action - business-object: Translate - connector-type: watsonlt - actions: - TRANSLATE: {} - action-interface-4: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - action-interface-5: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - action-interface-6: - type: api-action - business-object: message - connector-type: slack - actions: - CREATE: {} - assemblies: - assembly-1: - assembly: - execute: - - custom-action: - name: IBM Watson Language Translator Identify - target: - $ref: '#/integration/action-interfaces/action-interface-1' - action: IDENTIFY - map: - mappings: - - text: - template: '{{$Trigger.messageBody}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - if: - name: If - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - branch: - - condition: - '{{$IBMWatsonLanguageTranslatorIdentify.languages[0].language}}': en - execute: - - custom-action: - name: IBM Watson Language Translator Translate - target: - $ref: '#/integration/action-interfaces/action-interface-2' - action: TRANSLATE - map: - mappings: - - model_id: - template: en-fr - - text: - template: '{{$Trigger.messageBody}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorTranslate - $ref: >- - #/block/If/node-output/IBM Watson Language Translator - Translate/response/payload - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - mappings: - - message: - template: >- - {{$IBMWatsonLanguageTranslatorTranslate.translations[0].translation}} - - condition: - '{{$IBMWatsonLanguageTranslatorIdentify.languages[0].language}}': fr - execute: - - custom-action: - name: IBM Watson Language Translator Translate 2 - target: - $ref: '#/integration/action-interfaces/action-interface-3' - action: TRANSLATE - map: - mappings: - - model_id: - template: fr-en - - text: - template: '{{$Trigger.messageBody}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - map: - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorTranslate2 - $ref: >- - #/block/If/node-output/IBM Watson Language Translator - Translate 2/response/payload - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - mappings: - - message: - template: >- - {{$IBMWatsonLanguageTranslatorTranslate2.translations[0].translation}} - else: - execute: - - create-action: - name: Slack Create message - target: - $ref: '#/integration/action-interfaces/action-interface-4' - map: - mappings: - - text: - template: >- - Unrecognised language for message: - {{$Trigger.messageBody}} - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - completion-action: - terminate: - info: - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - message: >- - Unrecognised language for message: - {{$Trigger.messageBody}} - status-code: 200 - output-schema: - type: object - properties: - message: - type: string - required: - - message - - create-action: - name: Slack Create message 2 - target: - $ref: '#/integration/action-interfaces/action-interface-5' - map: - mappings: - - text: - template: 'Original message: {{$Trigger.messageBody}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - - create-action: - name: Slack Create message 3 - target: - $ref: '#/integration/action-interfaces/action-interface-6' - map: - mappings: - - text: - template: 'Translated message: {{$If.message}}' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: IBMWatsonLanguageTranslatorIdentify - $ref: >- - #/node-output/IBM Watson Language Translator - Identify/response/payload - - variable: If - $ref: '#/node-output/If/response/payload' - - variable: SlackCreatemessage2 - $ref: '#/node-output/Slack Create message 2/response/payload' - name: Slack translation bot -models: {} diff --git a/resources/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml b/resources/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml deleted file mode 100644 index 84777331f..000000000 --- a/resources/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml +++ /dev/null @@ -1,45 +0,0 @@ -$integration: 'http://ibm.com/appconnect/integration/v2/integrationFile' -integration: - type: trigger-action - trigger-interfaces: - trigger-interface-1: - type: event-trigger - triggers: - CREATED: - input-context: - data: Contact - assembly: - $ref: '#/integration/assemblies/assembly-1' - options: {} - connector-type: salesforce - action-interfaces: - action-interface-1: - type: api-action - business-object: Contact - connector-type: silverpop - actions: - CREATE: {} - assemblies: - assembly-1: - assembly: - execute: - - create-action: - name: Create contact - target: - $ref: '#/integration/action-interfaces/action-interface-1' - map: - mappings: - - KEY_COLUMNS: - mappings: - - Email: - template: '{{$Trigger.Email}}' - - LIST_ID: - template: '28963' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - name: >- - Create a new contact in Acoustic Campaign when a new contact is added in - Salesforce -models: {} diff --git a/resources/Create new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml b/resources/Create new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml deleted file mode 100644 index 35b568bf9..000000000 --- a/resources/Create new contact in Acoustic Campaign when a new contact is added in Salesforce.yaml +++ /dev/null @@ -1,44 +0,0 @@ -$integration: 'http://ibm.com/appconnect/integration/v2/integrationFile' -integration: - type: trigger-action - trigger-interfaces: - trigger-interface-1: - type: event-trigger - triggers: - CREATED: - input-context: - data: Contact - assembly: - $ref: '#/integration/assemblies/assembly-1' - options: {} - connector-type: salesforce - action-interfaces: - action-interface-1: - type: api-action - business-object: Contact - connector-type: silverpop - actions: - CREATE: {} - assemblies: - assembly-1: - assembly: - execute: - - create-action: - name: IBM Watson Campaign Automation Create contact - target: - $ref: '#/integration/action-interfaces/action-interface-1' - map: - mappings: - - KEY_COLUMNS: - mappings: - - Email: - template: '{{$Trigger.Email}}' - - LIST_ID: - template: '28963' - $map: 'http://ibm.com/appconnect/map/v1' - input: - - variable: Trigger - $ref: '#/trigger/payload' - name: >- - Create new contact in Acoustic Campaign when a new contact is added in Salesforce -models: {} diff --git a/resources/markdown/Assign ServiceNow incidents on Slack based on the language_instructions.md b/resources/markdown/Assign ServiceNow incidents on Slack based on the language_instructions.md deleted file mode 100644 index 58e993372..000000000 --- a/resources/markdown/Assign ServiceNow incidents on Slack based on the language_instructions.md +++ /dev/null @@ -1,10 +0,0 @@ -To refer to these instructions while editing the flow, open [the github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Assign%20ServiceNow%20incidents%20on%20Slack%20based%20on%20the%20language_instructions.md) (opens in a new window). - -1. Click **Create flow** to start using the template. -1. Connect to your [ServiceNow account](https://ibm.biz/aasservicenow). -1. Connect to your [Watson Language Translator account](https://ibm.biz/aasibmwatsonlt). -1. Click the first **If** node and, if necessary, change the two-character language codes according to your business needs. If you change the language, you'll also need to expand **Output data** for each branch of the **If** node to change the name of the team who'll deal with the incident. -1. Connect to your [Slack account](https://ibm.biz/aasslack). -1. For each Slack "Create message" action in the If node, select the channel that you want to post your message to for the language that's specified for that branch of the If node. If you've changed the language, you might also want to update the **Text** field. -1. For the Slack "Create message" action in the **If 2** node, select the channel that you want to post your message to for urgent incidents. -1. To start the flow, in the banner click **Start flow**. diff --git a/resources/markdown/Create a Slack translation bot_instructions.md b/resources/markdown/Create a Slack translation bot_instructions.md deleted file mode 100644 index 2cc2e4d16..000000000 --- a/resources/markdown/Create a Slack translation bot_instructions.md +++ /dev/null @@ -1,8 +0,0 @@ -To refer to these instructions while editing the flow, open [the github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20a%20Slack%20translation%20bot_instructions.md) (opens in a new window). - -1. Click **Create flow** to start using the template. -1. Connect to your [Slack account](https://ibm.biz/aasslack). -1. On the Slack "New message" event, copy the callback URL and [configure a custom slash command](https://www.ibm.com/docs/en/app-connect/saas?topic=apps-slack#index__consider-general) called `/translate`. -1. Connect to your [Watson Language Translator account](https://ibm.biz/aasibmwatsonlt). -1. For each "Create message" Slack node, choose the channel that you want to post the message to. -1. To start the flow, in the banner click **Start flow**. diff --git a/resources/markdown/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md b/resources/markdown/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md deleted file mode 100644 index 0844865b2..000000000 --- a/resources/markdown/Create a new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md +++ /dev/null @@ -1,7 +0,0 @@ -To refer to these instructions while editing the flow, open [the github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20a%20new%20contact%20in%20Acoustic%20Campaign%20when%20a%20new%20contact%20is%20added%20in%20Salesforce_instructions.md) (opens in a new window). - -1. Click **Create flow** to start using the template. -1. Connect to your [Salesforce account](https://ibm.biz/aassalesforce). -1. Connect to your Acoustic account. -1. Select the **Parent database** that you want to add the contact to. -1. To start the flow, in the banner click **Start flow**. diff --git a/resources/markdown/Create new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md b/resources/markdown/Create new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md deleted file mode 100644 index 14b5b15d2..000000000 --- a/resources/markdown/Create new contact in Acoustic Campaign when a new contact is added in Salesforce_instructions.md +++ /dev/null @@ -1,11 +0,0 @@ -To refer to these instructions while editing the flow, open [the github page](https://github.com/ot4i/app-connect-templates/tree/master/resources/markdown/Create%20new%20contact%20in%20Acoustic%20Campaign%20when%20a%20new%20contact%20is%20added%20in%20Salesforce_instructions.md) (opens in a new window). - -1. Click **Create flow** to start using the template. -2. Connect to the following accounts by using your credentials: - - **Salesforce** - - **Acoustic Campaign** -3. To start the flow, in the banner click **Start flow**. - -The flow is started when a new contact is created in the Salesforce. - - diff --git a/resources/template-metadata.json b/resources/template-metadata.json index b10dd1739..bc31df4a9 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -17,15 +17,6 @@ "tags": ["servicenow", "slack", "gmail", "support", "ticket", "email"], "offerings": ["app connect professional"] }, - { - "name": "Create a Slack translation bot", - "description": "Configure a /translate Slack slash command and use this template to translate messages from English to French, and French to English. Use /translate before a message for the bot to identify the language and translate the message. A message then appears in the channel in both languages, allowing for real-time multilingual chat.", - "summary": "Slack to 2 applications", - "sourceApp": "slack", - "targetApps": ["watsonlt", "slack"], - "tags": ["slack", "Watson Language Translator", "translate", "translation", "french", "english", "chat", "language"], - "offerings": ["app connect professional"] - }, { "name": "Create a case in Salesforce when a new incident is created in ServiceNow and alert team", "description": "This template creates a new case in Salesforce when a new incident is created in ServiceNow. If this is an urgent incident, the flow then sends an email via Gmail and a message on Slack to alert the team when a highly urgent incident comes in to ServiceNow. This helps you to act quickly on your urgent support incidents!", @@ -98,15 +89,6 @@ "tags": ["gmail", "slack", "email"], "offerings": ["app connect professional"] }, - { - "name": "Assign ServiceNow incidents on Slack based on the language", - "description": "This template uses Watson Language Translator to detect the language of new ServiceNow incidents, then send messages to the appropriate Slack channels based on the language. It also sends a message to a separate Slack channel for the most urgent incidents.", - "summary": "ServiceNow to 2 applications", - "sourceApp": "servicenow", - "targetApps": ["watsonlt", "slack"], - "tags": ["ServiceNow", "Watson Language Translator", "support", "cognitive", "Slack", "incident", "messaging", "language detection"], - "offerings": ["app connect professional"] - }, { "name": "For large Salesforce opportunities send an email and create an Asana task", "description": "This template creates and sends an email via Gmail, and creates an Asana task, when a new high value opportunity is created in Salesforce.", @@ -215,15 +197,6 @@ "tags": ["slack", "channels", "message", "copy", "callback", "callback url"], "offerings": ["app connect professional"] }, - { - "name": "Create a new contact in Acoustic Campaign when a new contact is added in Salesforce", - "description": "Use this template to create a new contact in Acoustic Campaign when a new contact is created in the Salesforce.", - "summary": "Salesforce to Acoustic Campaign", - "sourceApp": "salesforce", - "targetApps": ["silverpop"], - "tags": ["salesforce", "silverpop", "marketing", "email", "contact"], - "offerings": ["app connect professional"] - }, { "name": "Send me a Slack notification for every new Salesforce opportunity", "description": "Use this template to send a Slack notification to the sales team when a new opportunity is added in Salesforce.", @@ -970,16 +943,7 @@ "targetApps": ["mondaydotcom", "slack"], "tags": ["zendeskservice", "mondaydotcom", "slack"], "offerings": ["app connect professional"] - }, - { - "name": "Create new contact in Acoustic Campaign when a new contact is added in Salesforce", - "description": "Use this template to create a new contact in Acoustic Campaign when a new contact is created in the Salesforce.", - "summary": "Salesforce to Acoustic Campaign", - "sourceApp": "salesforce", - "targetApps": ["silverpop"], - "tags": ["salesforce", "silverpop"], - "offerings": ["app connect professional"] - }, + }, { "name": "Create order in IBM Sterling Order Management System for orders created in Microsoft Dynamics 365 for Sales", "description": "Use this template to create orders by using the IBM Order Management System’s create order asynchronous operation whenever any new orders are created in Microsoft Dynamics 365 for Sales.",